EC2 m3.medium / Gentoo Linux
$ ./wrk http://localhost:8081/hello
Running 10s test @ http://localhost:8081/hello
2 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 65.09ms 290.77ms 1.37s 95.27%
Req/Sec 10.86k 7.99k 48.33k 69.01%
190614 requests in 10.00s, 34.90MB read
Requests/sec: 19059.57
Transfer/sec: 3.49MB
Running 10s test @ http://localhost/
2 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 12.96ms 28.57ms 82.00ms 85.19%
Req/Sec 9.33k 9.14k 40.78k 82.52%
158301 requests in 10.00s, 40.11MB read
Requests/sec: 15830.41
Transfer/sec: 4.01MB
user nginx nginx;
worker_processes 1;
error_log /var/log/nginx/error_log info;
events {
worker_connections 1024;
use epoll;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main
'$remote_addr - $remote_user [$time_local] '
'"$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent" ';
access_log none;
server_tokens off;
client_header_timeout 10m;
client_body_timeout 10m;
send_timeout 10m;
connection_pool_size 256;
client_header_buffer_size 1k;
large_client_header_buffers 4 2k;
request_pool_size 4k;
output_buffers 1 32k;
postpone_output 1460;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
open_file_cache max=100000 inactive=60s;
open_file_cache_valid 60s;
open_file_cache_min_uses 2;
open_file_cache_errors on;
keepalive_timeout 75 20;
ignore_invalid_headers on;
index index.html;
server {
listen 127.0.0.1;
server_name localhost;
error_log /var/log/nginx/localhost.error_log info;
root /var/www/localhost/htdocs;
}
}