Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created August 27, 2017 17:31
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/fdd1e2309da826acbfb04826d77ddf9a to your computer and use it in GitHub Desktop.
Save Whateverable/fdd1e2309da826acbfb04826d77ddf9a to your computer and use it in GitHub Desktop.
benchable6
compare HEAD for ^10_000 { Buf.new(1, 2, 3, 4); Buf.shift + Buf.shift +< 8 + Buf.shift +< 16 + Buf.shift +< 24 } ||| for ^10_000 { Buf.new(1, 2, 3, 4); Buf.shift + Buf.shift * 64 + Buf.shift * 128 + Buf.shift * 192 }
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
Cannot resolve caller shift(Buf: ); none of these signatures match:
(Buf:D $: *%_)
in sub at /tmp/cILZagPHP2 line 1
in sub at EVAL_1 line 1
in method runloop at /home/bisectable/git/whateverable/data/perl6-bench/lib/Bench.pm6 (Bench) line 47
in method timeit at /home/bisectable/git/whateverable/data/perl6-bench/lib/Bench.pm6 (Bench) line 58
in method timethis at /home/bisectable/git/whateverable/data/perl6-bench/lib/Bench.pm6 (Bench) line 123
in method timethese at /home/bisectable/git/whateverable/data/perl6-bench/lib/Bench.pm6 (Bench) line 151
in method cmpthese at /home/bisectable/git/whateverable/data/perl6-bench/lib/Bench.pm6 (Bench) line 157
in block <unit> at /tmp/cILZagPHP2 line 1
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment