Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created February 12, 2017 04:14
Show Gist options
  • Save Whateverable/35ac6ed8a8220906b5d036019bbff3a2 to your computer and use it in GitHub Desktop.
Save Whateverable/35ac6ed8a8220906b5d036019bbff3a2 to your computer and use it in GitHub Desktop.
benchable6
compare 2017.01 for ^10000 { my ($a, $, $c) = "foo bar baz".words; } ||| for ^10000 { 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: 1.3118 wallclock secs @ 7.6232/s (n=10)
1: 1.7873 wallclock secs @ 5.5949/s (n=10)
O---O--------O-----O------O
| | Rate | 1 | 0 |
O===O========O=====O======O
| 1 | 5.59/s | -- | -27% |
| 0 | 7.62/s | 36% | -- |
---------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment