Commit Graph

16 Commits

Author SHA1 Message Date
Karoy Lorentey
8944591e71 [benchmark] Simplify benchmark registration 2021-09-15 22:08:08 -07:00
Karoy Lorentey
8910b75cfe [benchmark] Stop capitalizing function and variable names 2021-09-15 22:08:07 -07:00
Karoy Lorentey
203dc55b60 [benchmark] CheckResults → check
Capitalizing function names is against Swift naming conventions.
2021-09-15 22:08:07 -07: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
Pavol Vaskovic
b55244d558 [benchmark] Extract setup: Sequence *Array benches
Sequence benchmarks that test operations on Arrays have setup overhead of 14 μs. (Up from 4 μs a year ago!) That’s just the creation of an [Int] with 2k elements from a range… This array is now extracted into a constant.

This commit also removes the .unstable tag from some CountableRange benchmarks, restoring them back to commit set of the Swift Benchmark Suite.
2018-10-24 08:59:59 +02:00
Erik Eckstein
868c5a1fb7 benchmarks: Marking some benchmarks as unstable
The noise for those benchmarks even cannot be removed by using a high sample count.
2018-07-31 10:59:33 -07:00
Karoy Lorentey
41a8b9c084 [gardening][benchmark] Don't let Emacs modify gyb-generated benchmark sources 2018-06-25 17:16:39 +01:00
Erik Eckstein
614c12a1d8 benchmarks: mark another benchmark as unstable 2017-12-05 09:23:19 -08:00
Erik Eckstein
9931b3c719 benchmarks: Mark some unstable benchmarks as unstable.
Which excludes them from the list of executed benchmarks.
2017-12-04 16:01:56 -08:00
Max Moiseev
1dd9d61ded Move all benchmarks to use registerBenchmark and BenchmarkInfo 2017-10-03 18:04:56 -07:00
Dave Abrahams
e32fb8badb Remove interpolated strings from benchmark CheckResults
This call was in many cases skewing the benchmark results.

Note: Intentionally staging this in without removing the old overload initially.
2017-05-05 10:25:02 -07:00
practicalswift
a029589093 [gardening] Use consistent headers 2017-04-18 19:51:08 +02:00
Pavol Vaskovic
739c3b70a8 Add same test variants for DropLast and Prefix as exist on Suffix 2017-04-11 01:22:43 +02:00
Pavol Vaskovic
11065bec81 Fixed more filenames in the comments. 2017-04-08 09:22:56 +02:00
Pavol Vaskovic
4f3753a749 Add support for GYB in benchmarks 2017-04-08 09:13:18 +02:00