Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created December 11, 2017 13:44
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/7345710977c9592a73933ad0288b2a0a to your computer and use it in GitHub Desktop.
Save Whateverable/7345710977c9592a73933ad0288b2a0a to your computer and use it in GitHub Desktop.
benchable6
compare HEAD my @foo = <1 2 3 7 8 9 10 12 13 90 91 92>; my $sum; for ^1000 { $sum++ if $_ (elem) @foo }; ||| my %foo := <1 2 3 7 8 9 10 12 13 90 91 92>.Set; my $sum; for ^1000 { $sum++ if $_ (elem) %foo };
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
0: 0.1667 wallclock secs @ 59.9991/s (n=10)
(warning: too few iterations for a reliable count)
1: 0.0196 wallclock secs @ 510.7748/s (n=10)
(warning: too few iterations for a reliable count)
O---O--------O------O------O
| | Rate | 1 | 0 |
O===O========O======O======O
| 1 | 511/s | -- | 751% |
| 0 | 60.0/s | -88% | -- |
----------------------------
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment