Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created February 12, 2017 04:14
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/2f2c98661b80cab63a29b09d4dbe0dfd to your computer and use it in GitHub Desktop.
Save Whateverable/2f2c98661b80cab63a29b09d4dbe0dfd to your computer and use it in GitHub Desktop.
benchable6
compare 2017.01 for ^1000 { my ($a, $, $c) = "foo bar baz".words; } ||| for ^1000 { my ($a, $c); my \res := "foo bar baz".words; $a = res[0]; $c = res[2]; }
¦«2017.01»:Benchmark:
Timing 10 iterations of 0, 1...
0: 0.1456 wallclock secs @ 68.6835/s (n=10)
(warning: too few iterations for a reliable count)
1: 0.1849 wallclock secs @ 54.0961/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 | 54.1/s | -- | -21% |
| 0 | 68.7/s | 27% | -- |
---------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment