Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 25, 2018 15:53
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/83a3c2cefa23790173158cf5c937dfc7 to your computer and use it in GitHub Desktop.
Save Whateverable/83a3c2cefa23790173158cf5c937dfc7 to your computer and use it in GitHub Desktop.
benchable6
compare HEAD use nqp; nqp::substr("abcde",2,1 ) for ^100000; ||| "abcde".substr(2,1) for ^100000;
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
0: 0.1515 wallclock secs @ 66.0224/s (n=10)
(warning: too few iterations for a reliable count)
1: 0.3155 wallclock secs @ 31.6930/s (n=10)
(warning: too few iterations for a reliable count)
O---O--------O------O------O
| | Rate | 1 | 0 |
O===O========O======O======O
| 1 | 31.7/s | -- | -52% |
| 0 | 66.0/s | 108% | -- |
----------------------------
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment