Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created July 17, 2018 23:49
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 Whateverable/c74a3252c670db25a315ae70022e64ca to your computer and use it in GitHub Desktop.
Save Whateverable/c74a3252c670db25a315ae70022e64ca to your computer and use it in GitHub Desktop.
benchable6
compare HEAD my %orig = :1a, :2b; my %new = :5b, :6c; %orig «=« %new for ^5_000; dd %orig ||| my %orig = :1a, :2b; my %new = :5b, :6c; %orig ,= %new for ^5_000; dd %orig
¦HEAD: «Benchmark:
Hash %orig = {:a(1), :b(5), :c(6)}
Timing 10 iterations of 0, 1...
0: 8.6279 wallclock secs @ 1.1590/s (n=10)
1: 0.3829 wallclock secs @ 26.1177/s (n=10)
(warning: too few iterations for a reliable count)
O---O--------O-------O------O
| | Rate | 0 | 1 |
O===O========O=======O======O
| 0 | 1.16/s | -- | -96% |
| 1 | 26.1/s | 2153% | -- |
-----------------------------
Hash %orig = {:a(1), :b(5), :c(6)}
Hash %orig = {:a(1), :b(5), :c(6)}
Hash %orig = {:a(1), :b(5), :c(6)}
Hash %orig = {:a(1), :b(5), :c(6)}
Hash %orig = {:a(1), :b(5), :c(6)}
Hash %orig = {:a(1), :b(5), :c(6)}
Hash %orig = {:a(1), :b(5), :c(6)}
Hash %orig = {:a(1), :b(5), :c(6)}
Hash %orig = {:a(1), :b(5), :c(6)}
Hash %orig = {:a(1), :b(5), :c(6)}
Hash %orig = {:a(1), :b(5), :c(6)}
Hash %orig = {:a(1), :b(5), :c(6)}
Hash %orig = {:a(1), :b(5), :c(6)}
Hash %orig = {:a(1), :b(5), :c(6)}
Hash %orig = {:a(1), :b(5), :c(6)}
Hash %orig = {:a(1), :b(5), :c(6)}
Hash %orig = {:a(1), :b(5), :c(6)}
Hash %orig = {:a(1), :b(5), :c(6)}
Hash %orig = {:a(1), :b(5), :c(6)}
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment