Created
March 25, 2018 15:15
Star
You must be signed in to star a gist
benchable6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| compare HEAD use nqp; my int $a = 0; my int $b = 10; nqp::if(nqp::isle_i($a, $b),$a,$b) for ^10000; ||| my int $a = 0; my int $b = 10; min($a,$b) for ^10000; ||| my int $a = 0; my $b = 10; $a < $b ?? $a !! $b for ^10000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ¦HEAD: «Benchmark: | |
| Timing 10 iterations of 0, 1, 2... | |
| 0: 0.0313 wallclock secs @ 319.8692/s (n=10) | |
| (warning: too few iterations for a reliable count) | |
| 1: 0.8127 wallclock secs @ 12.3041/s (n=10) | |
| (warning: too few iterations for a reliable count) | |
| 2: 0.0348 wallclock secs @ 287.4989/s (n=10) | |
| (warning: too few iterations for a reliable count) | |
| O---O--------O-------O------O------O | |
| | | Rate | 1 | 0 | 2 | | |
| O===O========O=======O======O======O | |
| | 1 | 12.3/s | -- | -96% | -96% | | |
| | 0 | 320/s | 2500% | -- | 11% | | |
| | 2 | 288/s | 2237% | -10% | -- | | |
| ------------------------------------ | |
| » |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment