Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created June 28, 2018 00:06
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/77ce84efaf247a09c01c20ccb6e3e0a9 to your computer and use it in GitHub Desktop.
Save Whateverable/77ce84efaf247a09c01c20ccb6e3e0a9 to your computer and use it in GitHub Desktop.
benchable6
compare HEAD my $a = "hello there"; for ^200_000 { $a.chop } ||| my $a = "hello there"; for ^200_000 { $a.substr(0,*-1) }
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
0: 0.6799 wallclock secs @ 14.7079/s (n=10)
(warning: too few iterations for a reliable count)
1: 1.6687 wallclock secs @ 5.9927/s (n=10)
O---O--------O------O------O
| | Rate | 0 | 1 |
O===O========O======O======O
| 0 | 14.7/s | -- | 145% |
| 1 | 5.99/s | -59% | -- |
----------------------------
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment