Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 27, 2017 17:33
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/43635f98e94d3f3b794ea7c8dae6c974 to your computer and use it in GitHub Desktop.
Save Whateverable/43635f98e94d3f3b794ea7c8dae6c974 to your computer and use it in GitHub Desktop.
benchable6
compare 2015.12 so "hello how are you today?".contains("hello" & "u t") for ^1000 ||| my $target = "hello how are you today?"; so $target.contains("hello") && $target.contains("u t") for ^1000
¦2015.12: «Benchmark:
Timing 10 iterations of 0, 1...
0: 0.9650 wallclock secs @ 10.3629/s (n=10)
(warning: too few iterations for a reliable count)
1: 0.0253 wallclock secs @ 394.8021/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 | 395/s | -- | 3710% |
| 0 | 10.4/s | -97% | -- |
-----------------------------»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment