Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created February 20, 2019 03:09
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/e50ba1bf0b67e026557f904440a19842 to your computer and use it in GitHub Desktop.
Save Whateverable/e50ba1bf0b67e026557f904440a19842 to your computer and use it in GitHub Desktop.
benchable6
compare HEAD my @p = ('A::' | 'B::' | 'C::' | 'GTK::'); my $a; $a = 'GTK::CSSProvider.BUILD'.starts-with(@p.any).so for ^10_000 ||| my @p = ('A::', 'B::', 'C::', 'GTK::'); my $t = False; for ^10_000 { for @p { last if $t = "GTK::CSSProvider.BUILD".starts-with($_) } };
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
0: 4.3736 wallclock secs @ 2.2864/s (n=10)
1: 0.3130 wallclock secs @ 31.9464/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 | 2.29/s | -- | -93% |
| 1 | 31.9/s | 1297% | -- |
-----------------------------
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment