Skip to content

Instantly share code, notes, and snippets.

@tokuhirom
Created December 5, 2016 15:57
Show Gist options
  • Save tokuhirom/bb084c0fa7a80cf585115eeb2c56f49a to your computer and use it in GitHub Desktop.
Save tokuhirom/bb084c0fa7a80cf585115eeb2c56f49a to your computer and use it in GitHub Desktop.
p6 benchmark
use v6;
use Crust::Runner;
my $app = sub ($env) {
return 200, [], ['hello'];
};
my $runner = Crust::Runner.new;
$runner.parse-options(@*ARGS);
$runner.run($app);
$ 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