Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created January 11, 2019 23:37
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/f9950c6779b9aade8740a666d0c4829b to your computer and use it in GitHub Desktop.
Save Whateverable/f9950c6779b9aade8740a666d0c4829b to your computer and use it in GitHub Desktop.
benchable6
compare HEAD my Int @foo = 1..10000; my $result = 0; for ^200 { $result += @foo.join(",").chars }; say $result; ||| my int @foo = 1..10000; my $result = 0; for ^200 { $result += @foo.join(",").chars }; say $result
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
9778600
9778600
9778600
9778600
9778600
9778600
9778600
9778600
9778600
9778600
0: 4.9388 wallclock secs @ 2.0248/s (n=10)
9778600
9778600
9778600
9778600
9778600
9778600
9778600
9778600
9778600
9778600
1: 3.3155 wallclock secs @ 3.0161/s (n=10)
O---O--------O------O-----O
| | Rate | 1 | 0 |
O===O========O======O=====O
| 1 | 3.02/s | -- | 49% |
| 0 | 2.02/s | -33% | -- |
---------------------------
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment