Created
December 5, 2016 15:57
-
-
Save tokuhirom/bb084c0fa7a80cf585115eeb2c56f49a to your computer and use it in GitHub Desktop.
p6 benchmark
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
use v6; | |
use Crust::Runner; | |
my $app = sub ($env) { | |
return 200, [], ['hello']; | |
}; | |
my $runner = Crust::Runner.new; | |
$runner.parse-options(@*ARGS); | |
$runner.run($app); |
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
$ wrk http://127.0.0.1:5000/ | |
Running 10s test @ http://127.0.0.1:5000/ | |
2 threads and 10 connections | |
Thread Stats Avg Stdev Max +/- Stdev | |
Latency 92.82ms 88.22ms 432.15ms 83.74% | |
Req/Sec 71.35 56.16 250.00 66.47% | |
1331 requests in 10.03s, 189.91KB read | |
Requests/sec: 132.76 | |
Transfer/sec: 18.94KB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment