Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created May 3, 2020 19:26
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/675b9d5078f1906941776c02dfd87bf6 to your computer and use it in GitHub Desktop.
Save Whateverable/675b9d5078f1906941776c02dfd87bf6 to your computer and use it in GitHub Desktop.
benchable6
compare HEAD my $a = (^10).join(","); my @b; @b = $a.split(",") for ^10_000 ||| my $a = (^10).join(","); my @b; @b = $a.split(/","/) for ^10_000
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
0: 1.272 wallclock secs (1.284 usr 0.000 sys 1.284 cpu) @ 7.864/s (n=10)
(warning: too few iterations for a reliable count)
1: 4.037 wallclock secs (4.052 usr 0.000 sys 4.052 cpu) @ 2.477/s (n=10)
(warning: too few iterations for a reliable count)
O---O--------O------O------O
| | Rate | 0 | 1 |
O===O========O======O======O
| 0 | 7.86/s | -- | -69% |
| 1 | 2.48/s | 218% | -- |
O---O--------O------O------O
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment