Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created December 12, 2017 21:02
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/25788b01599b86f109c4e218f7f2a16d to your computer and use it in GitHub Desktop.
Save Whateverable/25788b01599b86f109c4e218f7f2a16d to your computer and use it in GitHub Desktop.
benchable6
compare HEAD my $a; (^90 X ^90).map( -> ($x, $y) { $a++ }); say $a; ||| my $a; (^90 X ^90).flat.map(-> $x, $y { $a++ }); say $a;
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
8100
8100
8100
8100
8100
8100
8100
8100
8100
8100
0: 1.4003 wallclock secs @ 7.1411/s (n=10)
8100
8100
8100
8100
8100
8100
8100
8100
8100
8100
1: 0.7992 wallclock secs @ 12.5129/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 | 12.5/s | -- | 75% |
| 0 | 7.14/s | -43% | -- |
---------------------------
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment