Pavol Vaskovic
a9cbe2bf87
[benchmark] String.replaceSubrange: multiplier fix
...
+[Gardening] minor formatting (80 chars)
2019-08-02 22:55:50 +02:00
Keita Ito
b76169c6e0
Update the PR by addressing feedback
...
- Re-name benchmark names
- Remove setupLargeManagedString()
- Remove unnecessary optimization barrier functions
- Update benchmark argument string by using smallString and largeString
- Remove unnecessary optimization barrier function calls
- Update replaceSubrange(_:_:with) to be generic function
2019-07-28 11:24:40 -07:00
Scott Perry
3e2e4f8b6f
Clean up the Diffing and Diffing.Myers benchmarks
2019-07-16 14:39:16 -07:00
David Smith
b06137b283
Add a private implementation of a String initializer with access to uninitialized storage ( https://github.com/apple/swift-evolution/pull/1022 ) and use it to speed up uppercased() and lowercased()
2019-07-09 15:05:00 -07:00
Pavol Vaskovic
f890cfb00f
Merge pull request #25309 from Armenm/SR-10855-non-ascii-angryphonebook
...
[benchmark] SR-10855: Added non-ASCII characters to String benchmarking
2019-07-04 19:00:20 +02:00
Pavol Vaskovic
6c97101aa3
[benchmark] Cleaned up new AngryPhonebook tests
...
Clarified the naming of tests that exercise `_SmallString`s with `.Small` suffix and used plane name for regular String workloads.
Reordered declarations. Documented workload sizes.
2019-07-04 16:50:26 +02:00
Pavol Vaskovic
1d37b0092d
[benchmark] Add AngryPhonebook.Strasse variant
...
Pathological case, uppercase: ß -> SS
2019-07-03 22:00:36 +02:00
Pavol Vaskovic
560cdca452
[benchmark] Large variants of new AngryPhonebook
...
Add case conversion benchmarks that operate on one large string (precomposed phonebook, comma separated names).
2019-07-03 18:49:51 +02:00
Pavol Vaskovic
878433eee6
[benchmark] Restore original run_AngryPhonebook
2019-07-03 17:47:51 +02:00
Keita Ito
b82f6c5f77
Remove benchmarks with largeLiteral
...
Per Michael's feedback (https://github.com/apple/swift/pull/25310#pullrequestreview-248466570 ), largeLiteral is likely redundant with largeManaged.
2019-07-01 23:18:03 -07:00
Scott Perry
f994fc3f80
Merge pull request #25808 from numist/numist/diffing-performance-master
...
Performance improvements and availability updates for Collection.difference(from:using:)
2019-07-01 14:20:07 -07:00
Pavol Vaskovic
5190db0acd
[Gardening][benchmark] Import MSVCRT on Windows
...
Import functions from standard C library on Windows.
2019-07-01 16:11:55 +02:00
Keita Ito
4c0ea56e1b
Add benchmarks for String.replaceSubrange(_:with:) with Repeated<Character>
2019-06-30 13:27:46 -07:00
Keita Ito
0de61f0e3d
Add benchmarks for String.replaceSubrange(_:with:) with Array<Character> arguments
2019-06-30 12:15:43 -07:00
Pavol Vaskovic
7c951410f4
[Gardening] Remove extra Foundation imports
...
Remove the import of Foundation where it is not necessary for testing the ObjC interop.
2019-06-28 16:42:27 +02:00
Armen
0c4859fd2f
Revert changes to existing benchmark
2019-06-27 23:06:15 -04:00
Scott Perry
0fc5d6ad31
Performance improvements and availability updates for Collection.difference(from:using:)
2019-06-26 16:55:29 -07:00
David Smith
acbb1ef7ee
Add a benchmark for unicode Strings created via JSON decoding
2019-06-26 14:18:49 -07:00
Doug Gregor
78ef7e3222
Revert "Add a benchmark for unicode Strings created via JSON decoding"
2019-06-26 07:37:54 -07:00
Armen
4483e849ef
SR-10855: Consistent test data and code refactor
2019-06-26 00:33:39 -04:00
David Smith
813b114aa2
Add a benchmark for unicode Strings created via JSON decoding
2019-06-25 21:19:26 -07:00
Armen
76bf39c3a4
Decreased the workload of benchmarks
2019-06-26 00:05:04 -04:00
Armen
d2255bdeab
SR-10855: Added non-ASCII characters
...
Added Cyrillic and Armenian names with emojis
2019-06-26 00:05:04 -04:00
Keita Ito
082285f84e
Reuse replaceSubrange(_:_:with:) function for benchmarks
2019-06-11 23:33:46 -07:00
Keita Ito
4d86f3fcf7
Rename benchmarks based on the benchmark naming convention
...
Reference: https://github.com/apple/swift/blob/master/benchmark/Naming.md
2019-06-11 01:37:39 -07:00
Keita Ito
459861b1d4
Rename ReplaceSubrange to StringReplaceSubrange
2019-06-11 00:03:21 -07:00
Keita Ito
e67c8b1fa0
Update ReplaceSubrange benchmark by adding Substring case
2019-06-07 17:55:57 -07:00
Keita Ito
0f6d56c9e6
Add ReplaceSubrange benchmark
2019-06-07 16:36:06 -07:00
Pavol Vaskovic
9706668e0a
[benchmark] RandomIntegersLCG futureproofed
...
Allow for future change in algorithm that generates random integers in range.
2019-06-07 06:14:40 +02:00
Pavol Vaskovic
da31b40e47
[benchmark] InsertCharacterStartIndex legacyFactor
2019-05-19 19:42:00 +02:00
Pavol Vaskovic
d76228b488
[benchmark] FrequenciesUsingReduce Legacy Factor
2019-05-19 19:41:59 +02:00
Johannes Weiss
53f5c5cbc1
Update NIOChannelPipeline.swift
2019-05-14 22:37:13 +01:00
Johannes Weiss
7226dca81f
benchmark: NIOChannelPipeline imitation
...
adds a benchmark that imitates SwiftNIO's ChannelPipeline. Recently,
Swift master regressed on this benchmark, therefore I believe adding it
to Swift provides value as it seems to be different enough to the existing
benchmarks.
2019-05-14 21:03:03 +01:00
Pavol Vaskovic
81db10cdc9
[benchmark] Disable tests with overlong runtime
...
Temporarily disable benchmarks that run for too long without optimizations pending in set-on-fire branch.
2019-05-12 12:58:02 +02:00
Pavol Vaskovic
87e1efd1a2
Merge pull request #24156 from Gumichocopengin8/add-set-benchmarks
...
[benchmark] Variants for Set Sequence Methods
2019-05-12 12:34:19 +02:00
Pavol Vaskovic
07f373d965
[benchmark] Set.subtracting.Seq increased workload
...
The workload multipliers need to be increased in order to accommodate the pending improvements from `lorentey:set-on-fire`, so that these benchmark don't drop to under 20 μs runtimes when those optimizations kick in.
These multiplier will differ from those used on Set.subtracting.Set by a factor of 5.
2019-05-10 23:54:31 +02:00
Pavol Vaskovic
a75f2d7536
[benchmark] Set.Seq showcase optimized early exits
2019-05-10 22:54:01 +02:00
Keita Nonaka
cecbb1491e
minor fixes
2019-05-10 14:43:42 -04:00
Patrick Pijnappel
7c49272324
Merge pull request #24476 from PatrickPijnappel/add-parsing-benchmark
...
[benchmark] Add integer parsing benchmarks
2019-05-09 08:59:15 +10:00
Keita Nonaka
b630380c0a
switch var to let in benchmark directory ( #24011 )
...
* switch var to let in benchmark directory
* Revert "switch var to let in benchmark directory"
This reverts commit 6133471e76 .
* change gyb files to fix error
2019-05-07 19:16:25 -07:00
Keita Nonaka
b1a96e863d
Variants for Set Sequence Methods
2019-05-07 18:29:24 -04:00
Pavol Vaskovic
cdc47f682f
[benchmark] Fix Existential.Array.Mutating SO
...
Mask the setup overhead from copying of existential array in `Existential.Array.Mutating` by increasing the workload (5x). This way the overhead of copying is less than 5%.
Remove the misguided attempt at solving this problem with `grabArray` method - there is no way to avoid this overhead because every sample should start from a fresh copy.
2019-05-06 08:04:18 +02:00
Patrick Pijnappel
aa39122ad5
[benchmark] Make small int parsing take >20µs
2019-05-05 09:34:25 +10:00
Patrick Pijnappel
414d860ceb
[benchmark] Split ParseInt into small/large & check results
2019-05-04 09:17:43 +10:00
Patrick Pijnappel
b4654bf660
[benchmark] Use dot in integer parsing benchmark names
2019-05-04 09:17:42 +10:00
Patrick Pijnappel
150bcb0503
[benchmark] Add integer parsing benchmarks
2019-05-04 09:17:42 +10:00
Pavol Vaskovic
63aa6fbd5b
Merge pull request #24367 from palimondo/breadcrumbs-prng-swap
...
[benchmark] Breadcrumbs: swap PRNG implementations
2019-04-30 09:23:40 +02:00
David Smith
a1384d9a18
Add a benchmark for bridging String(contentsOfFile:...), now with availability guards for watchOS and tvOS
2019-04-29 14:28:09 -07:00
Pavol Vaskovic
28adf81af1
[benchmark] Breadcrumbs: swap PRNG implementations
...
Replaced local LCRNG implementation with SplitMix64 from TestUtils.
2019-04-29 20:06:58 +02:00
Pavol Vaskovic
5032d33d07
[benchmark] BucketSort gardening
...
Increased workload to sorting of 10k items.
Used SplitMix64 PRNG for randomness.
Adjusted formatting and naming to match Swift conventions.
Adjusted documentation.
2019-04-29 19:42:02 +02:00