Skip to content

Instantly share code, notes, and snippets.

@turtlesoupy
Created May 31, 2020 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save turtlesoupy/16a1cdbd022bcd8b5458b868a4913bc0 to your computer and use it in GitHub Desktop.
Save turtlesoupy/16a1cdbd022bcd8b5458b868a4913bc0 to your computer and use it in GitHub Desktop.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
array_bench is a Catch v2.11.1 host application.
Run with -? for options
-------------------------------------------------------------------------------
Benchmark simple assignments
-------------------------------------------------------------------------------
/home/tdimson/projects/skimpy/tests/benchmarks/array_bench.cpp:17
...............................................................................
benchmark name samples iterations estimated
mean low mean high mean
std dev low std dev high std dev
-------------------------------------------------------------------------------
univariate_assign_1 100 3 2.4846 ms
8.375 us 8.273 us 8.811 us
909 ns 147 ns 2.125 us
univariate_assign_10 100 3 2.7381 ms
8.994 us 8.967 us 9.082 us
219 ns 41 ns 483 ns
univariate_assign_100 100 3 2.8077 ms
9.346 us 9.271 us 9.702 us
719 ns 42 ns 1.712 us
-------------------------------------------------------------------------------
Benchmark merge operations
-------------------------------------------------------------------------------
/home/tdimson/projects/skimpy/tests/benchmarks/array_bench.cpp:40
...............................................................................
benchmark name samples iterations estimated
mean low mean high mean
std dev low std dev high std dev
-------------------------------------------------------------------------------
multiply_2 100 1 265.033 ms
2.91931 ms 2.84319 ms 3.03628 ms
475.683 us 338.497 us 697.584 us
multiply_4 100 1 366.01 ms
3.69921 ms 3.62611 ms 3.78462 ms
400.707 us 341.903 us 478.955 us
multiply_8 100 1 527.299 ms
5.21257 ms 5.12784 ms 5.30321 ms
447.478 us 382.148 us 539.072 us
multiply_16 100 1 977.017 ms
9.48217 ms 9.32713 ms 9.65805 ms
844.5 us 731.29 us 986.313 us
-------------------------------------------------------------------------------
Benchmark skimpy array builders
-------------------------------------------------------------------------------
/home/tdimson/projects/skimpy/tests/benchmarks/array_bench.cpp:107
...............................................................................
benchmark name samples iterations estimated
mean low mean high mean
std dev low std dev high std dev
-------------------------------------------------------------------------------
build_10k 100 1 36.058 ms
358.92 us 358.493 us 359.483 us
2.492 us 1.935 us 3.217 us
build_100k 100 1 359.744 ms
3.6351 ms 3.62579 ms 3.64934 ms
57.873 us 41.138 us 77.251 us
build_1m 100 1 3.95912 s
39.4606 ms 39.3954 ms 39.568 ms
417.651 us 287.094 us 621.469 us
-------------------------------------------------------------------------------
Benchmark evaluation options
-------------------------------------------------------------------------------
/home/tdimson/projects/skimpy/tests/benchmarks/array_bench.cpp:184
...............................................................................
benchmark name samples iterations estimated
mean low mean high mean
std dev low std dev high std dev
-------------------------------------------------------------------------------
mul(k=32); accelerated_eval=false 100 1 34.8996 s
350.872 ms 348.227 ms 354.194 ms
15.0219 ms 12.3973 ms 18.2277 ms
mul(k=32); accelerated_eval=true 100 1 20.2546 s
189.892 ms 187.607 ms 192.877 ms
13.3218 ms 10.7351 ms 17.9675 ms
===============================================================================
All tests passed (202 assertions in 4 test cases)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment