Skip to content

Instantly share code, notes, and snippets.

@ghatighorias
Created January 30, 2017 15:23
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 ghatighorias/625dc64b696f0666d5cec6112d4f80fe to your computer and use it in GitHub Desktop.
Save ghatighorias/625dc64b696f0666d5cec6112d4f80fe to your computer and use it in GitHub Desktop.
Benchmark suite executing with the following configuration:
warmup: 10.0s
time: 20.0s
parallel: 1
inputs: big, medium, small, verybig
Estimated total run time: 360.0s
Benchmarking with input big:
Benchmarking body-recursive...
Benchmarking std-lib map...
Benchmarking tail-recursive...
Benchmarking with input medium:
Benchmarking body-recursive...
Benchmarking std-lib map...
Benchmarking tail-recursive...
Benchmarking with input small:
Benchmarking body-recursive...
Benchmarking std-lib map...
Benchmarking tail-recursive...
Benchmarking with input verybig:
Benchmarking body-recursive...
Benchmarking std-lib map...
Benchmarking tail-recursive...
##### With input big #####
Name ips average deviation median
tail-recursive 22.66 44.13 ms ±24.12% 42.69 ms
body-recursive 10.93 91.47 ms ±11.82% 89.40 ms
std-lib map 10.22 97.86 ms ±19.25% 90.95 ms
Comparison:
tail-recursive 22.66
body-recursive 10.93 - 2.07x slower
std-lib map 10.22 - 2.22x slower
##### With input medium #####
Name ips average deviation median
std-lib map 369.90 2.70 ms ±16.11% 2.59 ms
body-recursive 362.48 2.76 ms ±22.89% 2.60 ms
tail-recursive 271.56 3.68 ms ±28.88% 3.45 ms
Comparison:
std-lib map 369.90
body-recursive 362.48 - 1.02x slower
tail-recursive 271.56 - 1.36x slower
##### With input small #####
Name ips average deviation median
std-lib map 3.59 K 278.81 μs ±48.34% 245.00 μs
body-recursive 3.53 K 283.09 μs ±82.49% 245.00 μs
tail-recursive 3.31 K 301.96 μs ±30.37% 298.00 μs
Comparison:
std-lib map 3.59 K
body-recursive 3.53 K - 1.02x slower
tail-recursive 3.31 K - 1.08x slower
##### With input verybig #####
Name ips average deviation median
tail-recursive 4.78 209.30 ms ±21.63% 190.49 ms
std-lib map 2.10 476.73 ms ±10.23% 485.20 ms
body-recursive 2.07 484.17 ms ±12.36% 476.54 ms
Comparison:
tail-recursive 4.78
std-lib map 2.10 - 2.28x slower
body-recursive 2.07 - 2.31x slower
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment