Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kevinohashi/017c4489756b357ba68e93151879a449 to your computer and use it in GitHub Desktop.
Save kevinohashi/017c4489756b357ba68e93151879a449 to your computer and use it in GitHub Desktop.
benchmark nginx vs lsws - linode 1gb instance
h2load - 1kstatic.html
lsws 5.4 finished in 0.76 seconds, 132261.00 req/s, 15.53 MB/s, 0 failures
nginx 1.16.0 finished in 4.40 seconds, 22710.60 req/s, 5.07 MB/s, 0 failures
wrk - 1kstatic.html
lsws 5.4 finished in 5.00 seconds, 60256.80 req/s, 22.76 MB/s, N/A failures
nginx 1.16.0 finished in 5.00 seconds, 18618.40 req/s, 6.75 MB/s, N/A failures
h2load - 1knogzip.jpg
lsws 5.4 finished in 62.05 seconds, 1595.50 req/s, 1.60 MB/s, 1000 failures
nginx 1.16.0 finished in 3.10 seconds, 32253.60 req/s, 35.44 MB/s, 0 failures
wrk - 1knogzip.jpg
lsws 5.4 finished in 5.00 seconds, 58411.80 req/s, 75.76 MB/s, N/A failures
nginx 1.16.0 finished in 5.00 seconds, 27123.20 req/s, 32.69 MB/s, N/A failures
h2load - wordpress
lsws 5.4 finished in 3.31 seconds, 30226.40 req/s, 117.48 MB/s, 0 failures
nginx 1.16.0 finished in 27.50 seconds, 3636.90 req/s, 14.72 MB/s, 0 failures
wrk - wordpress
lsws 5.4 finished in 5.00 seconds, 19523.90 req/s, 81.78 MB/s, N/A failures
nginx 1.16.0 finished in 5.00 seconds, 3397.89 req/s, 14.24 MB/s, N/A failures
@kevinohashi
Copy link
Author

kevinohashi commented Jul 25, 2019

h2load - 1kstatic.html
lsws 5.4        finished in       0.76 seconds,  130994.00 req/s,      15.39 MB/s,          0 failures
nginx 1.16.0    finished in       4.65 seconds,   21511.60 req/s,       4.78 MB/s,          0 failures
wrk - 1kstatic.html
lsws 5.4        finished in       5.00 seconds,   60923.20 req/s,      23.01 MB/s,        N/A failures
nginx 1.16.0    finished in       5.00 seconds,   18329.60 req/s,       6.64 MB/s,        N/A failures
h2load - 1knogzip.jpg
lsws 5.4        finished in      61.99 seconds,    1596.90 req/s,       1.60 MB/s,       1000 failures
nginx 1.16.0    finished in       3.04 seconds,   32862.20 req/s,      36.11 MB/s,          0 failures
wrk - 1knogzip.jpg
lsws 5.4        finished in       5.00 seconds,   56565.60 req/s,      73.37 MB/s,        N/A failures
nginx 1.16.0    finished in       5.01 seconds,   24994.70 req/s,      30.13 MB/s,        N/A failures
h2load - wordpress
lsws 5.4        finished in       3.38 seconds,   29560.40 req/s,     114.89 MB/s,          0 failures
nginx 1.16.0    finished in      29.16 seconds,    3429.00 req/s,      14.36 MB/s,          0 failures
wrk - wordpress
lsws 5.4        finished in       5.00 seconds,   18742.40 req/s,      78.50 MB/s,        N/A failures
nginx 1.16.0    finished in       5.00 seconds,    3291.39 req/s,      14.25 MB/s,        N/A failures

@http2benchmark
Copy link

http2benchmark commented Jul 25, 2019

Hi,
Looks like your test has been capped by available bandwidth between client and server machine. Looks like the available bandwidth is around 1Gbps.
h2load - 1knogzip.jpg LSWS failure is likely due to excessive packet drop. you can try reducing the size of /var/www/html/1knogzip.jpg, to bring the bandwidth usage of the test below 110 MB/s.

@Code-Egg
Copy link

Code-Egg commented Jul 25, 2019

Tested a few times on my Linode server and it sometimes shows failures on different items due to high traffic gets blocked automatically. So the next test case will show a failure.
If you try /opt/benchmark.sh -i 10 --no-check (which will sleep 10s before each test, and skip the CPU check to save some resources from the server side) then every test case works well. So far that's been my experience on my test server.

Just FYI, it's better to test on a higher bandwidth cloud environment like DigitalOcean (around 2GB bandwidth for my test).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment