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
#!/usr/bin/env perl6 | |
use v6; | |
use Stats; | |
#Tim's original times: | |
#primes-inline-loop(1000) ran in 2.425 seconds (σ = 0.213 seconds). | |
#primes-inline-loop-upto-sqrt(1000) ran in 2.311 seconds (σ = 0.131 seconds). | |
#primes-inline-loop-upto-int-sqrt(1000) ran in 2.274 seconds (σ = 0.161). | |
sub bench($name, &code) { |