Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created August 27, 2017 17:34
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/6b6501f8c0475c742f6554fc18ca99de to your computer and use it in GitHub Desktop.
Save Whateverable/6b6501f8c0475c742f6554fc18ca99de to your computer and use it in GitHub Desktop.
benchable6
compare HEAD for ^10_000 { my $buf = Buf.new(1, 2, 3, 4); my int64 $a = $buf.shift + $buf.shift +< 8 + $buf.shift +< 16 + $buf.shift +< 24 } ||| for ^10_000 { my $buf = Buf.new(1, 2, 3, 4); my int64 $a = $buf.shift + $buf.shift * 64 + $buf.shift * 128 + $buf.shift * 192 }
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
0: 2.4745 wallclock secs @ 4.0412/s (n=10)
1: 2.4924 wallclock secs @ 4.0122/s (n=10)
O---O--------O----O-----O
| | Rate | 1 | 0 |
O===O========O====O=====O
| 1 | 4.01/s | -- | -1% |
| 0 | 4.04/s | 1% | -- |
-------------------------»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment