Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created September 2, 2019 12:21
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/740e1275a59a4fd9ad12a78e843fa30b to your computer and use it in GitHub Desktop.
Save Whateverable/740e1275a59a4fd9ad12a78e843fa30b to your computer and use it in GitHub Desktop.
benchable6
compare HEAD "Hello".comb[0] for ^300_000 ||| "Hello".substr(0, 1) for ^300_000
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
0: 6.3080 wallclock secs @ 1.5853/s (n=10)
1: 1.1355 wallclock secs @ 8.8067/s (n=10)
O---O--------O------O------O
| | Rate | 1 | 0 |
O===O========O======O======O
| 1 | 8.81/s | -- | 456% |
| 0 | 1.59/s | -82% | -- |
----------------------------
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment