Stephen Canon
9ddbd56d32
Simd random mask benchmark ( #36579 )
...
* Add benchmark for SIMDMask.random generation.
* Add bitcast for IntN -> VecNxInt1
2021-03-25 08:54:40 -04:00
Stephen Canon
b972d31458
Use correct setup for Int8
2021-03-19 18:47:37 -04:00
Stephen Canon
22f4c4553a
Update benchmark naming.
2021-03-19 15:08:41 -04:00
Stephen Canon
13812776cc
Some initial benchmarks for simd integer arithmetic.
2021-03-19 11:19:35 -04:00
Michael Ilseman
4fe6873c72
[benchmark] Conform to naming and timing conventions
2021-03-06 09:01:09 -07:00
Michael Ilseman
4612a5b02f
[benchmark] Cleanup and bug fix
2021-03-05 17:26:29 -07:00
Michael Ilseman
73af20fdbf
[benchmark] Add StringSplitting and lines benchmarks
...
Add a new benchmark module StringSplitting for split-like benchmarking.
Add lineSink benchmarks, which separates Unicode content by lines and feeds
Strings into a sink.
2021-03-04 17:20:12 -07:00
Michael Ilseman
288a0db849
Merge pull request #36018 from Lukasa/cb-add-naive-whitespace-trim-benchmark
...
Add Substring benchmark for naive ACSII whitespace trimming.
2021-02-24 08:24:42 -07:00
Richard Wei
0b53a02544
[AutoDiff] Rename 'in:' to 'of:' in differential operators.
...
Rename the argument label `in:` in `gradient(at:in:)`, `pullback(at:in:)`, etc to `of:`, as suggested in the [pitch thread](https://forums.swift.org/t/differentiable-programming-for-gradient-based-machine-learning/42147 ).
2021-02-24 01:33:42 -05:00
Cory Benfield
69a8e73966
Add Substring benchmark for naive ACSII whitespace trimming.
...
This is derived from swift-nio-http2's codebase, which contains this
unfortunate code for trimming ASCII whitespace.
2021-02-19 17:26:53 +00:00
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