Skip to content

Instantly share code, notes, and snippets.

@mholt
Created February 25, 2016 06:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mholt/3f613740ceb417bf63fa to your computer and use it in GitHub Desktop.
Save mholt/3f613740ceb417bf63fa to your computer and use it in GitHub Desktop.
Strange web server benchmark results
# nginx
$ wrk -t12 -c400 -d10m http://127.0.0.1:8080
Running 10m test @ http://127.0.0.1:8080
12 threads and 400 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 27.68ms 103.65ms 1.46s 97.82%
Req/Sec 2.81k 668.68 5.43k 87.84%
19592615 requests in 10.00m, 15.49GB read
Socket errors: connect 0, read 250, write 0, timeout 0
Non-2xx or 3xx responses: 10
Requests/sec: 32650.81
Transfer/sec: 26.43MB
# apache
$ wrk -t12 -c400 -d10m http://127.0.0.1:8081
Running 10m test @ http://127.0.0.1:8081
12 threads and 400 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 37.90ms 76.57ms 619.69ms 87.14%
Req/Sec 3.49k 1.35k 27.26k 78.53%
22780723 requests in 10.00m, 17.78GB read
Socket errors: connect 0, read 32407, write 463, timeout 0
Requests/sec: 37963.06
Transfer/sec: 30.35MB
# caddy
$ wrk -t12 -c400 -d10m http://127.0.0.1:2015
Running 10m test @ http://127.0.0.1:2015
12 threads and 400 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 7.42ms 1.45ms 98.42ms 86.09%
Req/Sec 4.47k 231.73 9.86k 70.04%
32035288 requests in 10.00m, 24.20GB read
Socket errors: connect 0, read 249, write 0, timeout 0
Requests/sec: 53385.04
Transfer/sec: 41.29MB
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
body {
width: 35em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p>
<p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p>
<p><em>Thank you for using nginx.</em></p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment