Commit Graph

58 Commits

Author SHA1 Message Date
Pavol Vaskovic
381dbda3bf [benchmark] StringToData, DataToString LF 2018-12-18 21:19:14 +01:00
Philippe Hausler
ff26e96a23 Disable really large Data tests that take a bit too long to run 2018-11-07 15:48:49 -08:00
Philippe Hausler
a66e769b84 [Benchmarks] Add a whole lot more benchmarks for Data (#20396) 2018-11-07 11:25:54 -08:00
Pavol Vaskovic
ae9f5f18b0 [benchmark] Extract setup from DataBenchmarks
DataCount had setup overhead of 18 μs (20%).
DataSubscript had setup overhead of 18 μs (2%).
SetUpFunction wasn’t necessary, because of short initialization (18 μs for `sampleData(.medium)`), which will inflate only the initial measurement.

Runtimes of other benchmarks hide the sampleData initialization in their artificially high runtimes — most use internal multiplier of 10 000 iterations — but were changed to use the same constant data, since it was already available. The overhead will already be extracted if we go for more precise measurement with lower multipliers in the future.
2018-10-23 22:12:22 +02:00
Michael Gottesman
36e0e6949c [benchmark] Add cmake support for compiling the benchmarks standalone on Linux.
To use this, one needs to first build an installable root for swift (i.e. like
the smoke testbot does). Then use the tool ./benchmark/scripts/build_linux.py
with the appropriate locations of the build-directory, installable snapshot,
and it will build the benchmarks. (There are more arguments, just use --help).

rdar://40541972
2018-05-29 14:25:16 -07:00
Michael Gottesman
1466b29dec [benchmark] Disable one benchmark when compiling on Linux.
I was able to run Benchmark_QuickCheck with the out of tree Linux build with
just these tests disabled and everything seems to work.

rdar://40541972
2018-05-29 10:54:19 -07:00
Tony Parker
bfa0be99e7 Use blackHole to ensure inner loops are not optimized away; switch subscript benchmark to 10000*N style 2018-03-14 12:39:12 -07:00
Tony Parker
19c6ccf5af Updated Data benchmarks 2018-03-13 17:29:50 -07:00