Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 31, 2018 11:59
Show Gist options
  • Save Whateverable/08485555766b077d908d85a22e793bca to your computer and use it in GitHub Desktop.
Save Whateverable/08485555766b077d908d85a22e793bca to your computer and use it in GitHub Desktop.
benchable6
compare HEAD say (0..1).roll(100_000).sum ||| say +(0..1).roll(100_000).grep
¦HEAD: «Benchmark:
Cannot resolve caller grep(Seq: ); none of these signatures match:
($: Bool:D $t, *%_)
($: Mu $t, *%_)
in sub at /tmp/Z7UUX6bQzq line 1
in sub at EVAL_3 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/Z7UUX6bQzq line 1
Timing 10 iterations of 0, 1...
50193
49901
50194
49861
50025
50025
49922
50139
49972
49998
0: 0.6592 wallclock secs @ 15.1689/s (n=10)
(warning: too few iterations for a reliable count)
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment