Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 25, 2017 14:42
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/53858e0d9e218e0c550ff846b228890e to your computer and use it in GitHub Desktop.
Save Whateverable/53858e0d9e218e0c550ff846b228890e to your computer and use it in GitHub Desktop.
benchable6
compare HEAD my $s = 0; for ^1_000_000 -> int $_ { $s = $s + 1 }; say $s; ||| my $s = 0; $s = $s + 1 for ^1_000_000; say $s;
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
1000000
1000000
1000000
1000000
1000000
1000000
1000000
1000000
1000000
1000000
0: 5.9596 wallclock secs @ 1.6780/s (n=10)
1000000
1000000
1000000
1000000
1000000
1000000
1000000
«timed out after 10 seconds»»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment