zoecarver
cbfe358065
[benchmark] Add "StringSwitch" benchmark to match "StringEnum".
...
This benchmark compares 184 strings in a string-based switch statement.
This will be used to test #28260 .
2021-01-04 11:33:57 -08:00
Richard Wei
b8581cb83b
[AutoDiff] Add differentiation benchmarks ( #34901 )
...
* Add differentiation benchmarks.
* Make install name of _Differentiation be @rpath/libswift_Differentiation.dylib.
Co-authored-by: Marc Rasi <marcrasi@google.com >
2020-12-02 12:26:31 -08:00
Micah Benn
25bd5eaed7
Fix styling, optimize
2020-11-09 17:04:59 -06:00
Micah Benn
477bef7dfc
Condense benchmarks
2020-11-06 20:11:16 -06:00
Micah Benn
6f103c63b2
Pre-construct indexPath, use setUpFunction
2020-11-02 00:29:30 -06:00
Micah Benn
55b3b34dcc
Decrease load 16x, fix naming, fix mem usage
...
Fixes mem usage of run_IndexPathSubscriptRangeMutation
2020-11-01 23:05:00 -06:00
Micah Benn
fe5d2762f0
Apply swift-format
2020-11-01 19:20:08 -06:00
Micah Benn
13a638532f
Fix indentation, move params to new line
2020-11-01 15:25:30 -06:00
Micah Benn
e69b71f4ec
Update per style guildelines
2020-11-01 15:07:24 -06:00
Micah Benn
3d40513acb
Fix formatting
2020-11-01 09:07:27 -06:00
Micah Benn
71784065cb
Add IndexPath benchmarks
...
Add benchmarks for subscripts, max, min
2020-11-01 08:39:51 -06:00
Andrew Trick
d43c1cc059
Merge pull request #34042 from atrick/verify-chacha
...
Add result checking to the ChaCha benchmark.
2020-09-24 00:01:45 -07:00
Andrew Trick
eef1cf6688
Add result checking to the ChaCha benchmark.
...
This benchmark was being miscompiled for some time and
we did not catch it. I only noticed because a correcteness
fix caused a regression.
2020-09-23 21:12:02 -07:00
Xiaodi Wu
cb96bfbfdf
[benchmark] Tweak naming and workload for two new tests
2020-09-16 21:38:19 -04:00
Xiaodi Wu
26f3c81e44
[benchmark] Add another floating point conversion benchmark
2020-09-16 19:32:13 -04:00
Xiaodi Wu
94887747a4
[benchmark] Add another test to floating point conversion benchmark
2020-09-16 19:05:09 -04:00
Xiaodi Wu
41d0e2937b
[benchmark] Add benchmark for generic floating-point to integer conversion ( #33895 )
...
* [benchmark] Add a benchmark for generic floating-point to integer conversion
* [benchmark] Increase workload on new benchmark before merging
2020-09-15 17:15:24 -04:00
Xiaodi Wu
6a85fa7509
[benchmark] Delete two benchmarks and add generic floating-point conversion lit tests
2020-09-08 13:10:24 -04:00
Suyash Srijan
3692751690
[Benchmark] Fix build failure on armv7 by guarding Float80 availability
2020-09-07 01:23:00 +01:00
Xiaodi Wu
44a7038f9e
[benchmark] Address review comments on FP conversion benchmarks
2020-09-05 11:27:54 -04:00
Xiaodi Wu
60b7c578c4
[benchmark] Add mock floating-point types for conversion benchmarks
2020-09-04 23:47:10 -04:00
Xiaodi Wu
514dce144f
Update copyright year on benchmark and its template
2020-09-04 15:02:38 -04:00
Xiaodi Wu
65a547c4e6
[benchmark] Add new benchmark for floating-point conversion
2020-09-04 13:42:47 -04:00
Mike Ash
60e12f109d
Add a benchmark for protocol conformance testing.
2020-08-14 15:32:51 -04:00
tbkka
2c8ae98e5e
Python3 compatibility for Benchmarks ( #33039 )
...
Three issues addressed here:
1. Dependency on dictionary iteration order
CharacterProperties.swift.gyb iterated a dictionary to produce its output.
Changed this to a list of tuples to ensure the order is predictable.
2. Python3 `map` returns an iterator, not a list
Changed a bunch of `map` calls to `list(map(...))` to ensure the result is a list
3. Python3 `int()` expects a string, won't accept a list of characters
Added a concatenation step that is effectively a no-op on Python2
2020-07-22 12:24:10 -07:00
tbkka
9bc5be372c
Rework a couple of benchmarks to work with both Python2 and Python3 ( #32905 )
2020-07-15 15:16:14 -07:00
Robert Widmann
cddf73ecdb
[Gardening] Clean Up OS-Test Patterns Across The Codebase
...
Clean up a few general patterns that are now obviated by canImport
This aligns more generally with the cleanup that the Swift Package
Manager has already done in their automated XCTest-plumbing tool in
apple/swift-package-manager#1826 .
2020-06-30 22:55:58 -07:00
Nate Cook
e49a5b7655
Switch to benchmark remove* instead of drop*
2020-06-25 14:35:56 -05:00
Nate Cook
9855496a16
Add benchmarks for Substring.dropFirst(_:) and dropLast(_:) ( #32473 )
...
* Add benchmarks for Substring.dropFirst(_:) and dropLast(_:)
These are self-slicing operations, so they should be fast even for
this non-random-access collection.
* Fiddle with the iteration count and length
2020-06-25 10:53:14 -05:00
Ben Cohen
baa3a7dc10
[benchmarks] Add a benchmark for printing using mirrors ( #32150 )
...
* Add a benchmark for mirrors and typename->string conversion
2020-06-03 12:06:39 -07:00
Andrew Trick
c001de0359
Broaden the set of benchmarks tagged under .cpubench
...
These have all shown to be interesting, relevant, stable, and
optimized well enough by the compiler to be useful for cpu performance
tracking.
2020-05-18 23:43:07 -07:00
Andrew Trick
eb1ac0bfd9
Add .cpubench tag to ProtocolDispatch2
2020-05-07 15:01:04 -07:00
Pavol Vaskovic
c7524d3d9a
Merge pull request #24677 from palimondo/janitor’s-last-stand
...
[benchmark] Janitor Duty: Final Sweep
2020-04-15 19:44:02 +02:00
Robert Widmann
80cc726ad4
Merge pull request #19954 from Lukasa/cb-bench-h2-enumeration
...
[benchmark] Add HTTP2StateMachine benchmark
2020-04-14 20:03:56 -07:00
brett koonce
7f0f6bbec2
rm minor warning
2020-04-09 10:08:10 -07:00
eeckstein
ecf1e4e370
Merge pull request #30822 from PatrickPijnappel/premultiply-case-conversion-benchmark
...
[benchmark] Premultiply N for case conversion benchmark
2020-04-08 08:26:55 +02:00
Patrick Pijnappel
6196a8a045
[benchmark] Rename premultiplied tests
2020-04-07 19:04:45 +10:00
Patrick Pijnappel
fce674efcb
[benchmark] Premultiply N for case conversion benchmark
2020-04-06 15:48:12 +10:00
Patrick Pijnappel
4863d0448e
[benchmark] Change selection of non-skipped ParseInt benchmarks
2020-04-06 13:22:04 +10:00
Michael Ilseman
83e5cb5bcf
[benchmark] Disable inlining of wCSIA in benchmark
...
... which gives us a better feel for when contiguity is unknown at the
call site.
2020-04-03 14:06:12 -07:00
Michael Ilseman
e3cbb41a67
[benchmark] Add custom-collection String(decoding:as:)
...
Add a custom collection String(decoding:as:) benchmark for contiguous
and non-contiguous collections (overriding
withContiguousStorageIfAvailable)
2020-04-01 11:29:03 -07:00
Patrick Pijnappel
965f7e2b4a
Merge pull request #29988 from PatrickPijnappel/expand-parse-int-benchmarks
...
[benchmark] Expand ParseInt benchmarks
2020-02-26 17:29:39 +11:00
swift-ci
573e55263c
Merge pull request #30049 from gottesmm/pr-84af955fa93e4646656fdbeff3a2df1e1a5399ea
2020-02-25 18:21:35 -08:00
Michael Gottesman
583b2b00e5
[benchmark] Fix names
2020-02-25 13:53:20 -08:00
Michael Gottesman
66ece215c1
Add a version of Prims that uses Unmanaged._withUnsafeGuaranteedRef.
2020-02-25 12:33:32 -08:00
Michael Gottesman
7c5f4d8960
Add variants of PrimsNonStrongRef that use a closure access function rather than an accessor to get the underlying value.
...
I am going to be adding a variant of this that uses
Unmanaged._withUnsafeGuaranteedRef(...). To truly make it fair, I am
adding variants that also use an access ref entrypoint.
2020-02-25 12:33:32 -08:00
Michael Gottesman
561c76d5bb
Add version of non strong ref prims that uses a closure based approach to access the value.
...
I am going to add a version of this that tests that Unmanaged._withUGR
gives us expected performance. So we really need both versions of all of
the four current benchmarks to make this truly fair.
2020-02-25 12:33:32 -08:00
Michael Gottesman
25233e53fd
Fix small bit of incorrect code that was hiding behind an #if false.
2020-02-25 12:33:32 -08:00
Karoy Lorentey
4804425e45
[benchmark] Add regular (slow) Unmanaged variant
2020-02-25 11:25:49 -08:00
Karoy Lorentey
2e95ab90bb
[benchmark] Actually deallocate nodes 🤭
2020-02-25 11:09:40 -08:00