As more and more sites switch to HTTPS, and more servers add HTTP/2 support, it can be difficult to determine which server has the best performance. This site aims to settle that question.

Methodology

We provide an easy-to-use script so that you may set up and run the benchmarks yourself. If you don’t believe the published results, you can verify them on your own server.

How benchmarking is performed

How can you contribute

The http2benchmark project is an open-source project hosted on GitHub.

Contributions are welcome, including:

Give your feedback in the project’s Issues area or create a Pull Request, and add any of the following:

How to to run your own benchmark

You can easily run http2benchmark on your own server by following this guide.

It takes less than an hour of two $5 Digital Ocean droplets to verify the test results.
Total cost is less than $0.02. Give it a try. :-) 

Server software compared

Server software to be added soon

Test clients used

Micro benchmarks

  1. Small static HTML file that can be compressed
  2. Small static image files that cannot be compressed.

Application benchmark

Benchmark Results

Digital Ocean 1GB Droplet

* Date: 07/23/2019
* Server: 1GB memory, 1-core Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz
* Client: 2GB memory, 1-core Intel(R) Xeon(R) Gold 6140 CPU @ 2.30GHz
* Network Bandwidth: 1.8Gbps

HTTP/2: LSWS 5.4 vs Nginx 1.16

Command: h2load -n 100000 -c 100 -m 10 -H "Accept-encoding: gzip, deflate" https://<IP>/<URL>

Test Name LSWS 5.4 Nginx 1.16 LSWS vs Nginx
1kstatic.html (req/s) 156,422.00 18,734.10 8.35 : 1
1knogzip.jpg (req/s) 132,162.00 27,898.10 4.73 : 1
wordpress homepage (req/s) 36,089.90 3,597.00 10.03 : 1

HTTPS: LSWS 5.4 vs Nginx 1.16

Command: wrk -d 5 -c 100 -H "Accept-encoding: gzip, deflate" https://<IP>/<URL>

Test Name LSWS 5.4 Nginx 1.16 LSWS vs Nginx
1kstatic.html (req/s) 41,794.80 15,580.20 2.68 : 1
1knogzip.jpg (req/s) 40,326.40 21,976.70 1.83 : 1
wordpress homepage (req/s) 16,414.00 3,410.70 4.81 : 1

Vultr “High Frequency Compute” 2-GB instance

* Date: 07/23/2019
* Server: 2GB memory, 1-core 3GHz+ CPUs ( 3792MHz )
* Client: 2GB memory, 1-core 3GHz+ CPUs ( 3792MHz )
* Network Bandwidth: 7.7Gbps

HTTP/2: LSWS 5.4 vs Nginx 1.16

Command: h2load -n 100000 -c 100 -m 10 -H "Accept-encoding: gzip, deflate" https://<IP>/<URL>

Test Name LSWS 5.4 Nginx 1.16 LSWS vs Nginx
1kstatic.html (req/s) 212,222.00 33,909.20 6.26 : 1
1knogzip.jpg (req/s) 203,938.00 45,258.70 4.50 : 1
wordpress homepage (req/s) 69,421.10 6,045.70 11.48 : 1

HTTPS: LSWS 5.4 vs Nginx 1.16

Command: wrk -d 5 -c 100 -H "Accept-encoding: gzip, deflate" https://<IP>/<URL>

Test Name LSWS 5.4 Nginx 1.16 LSWS vs Nginx
1kstatic.html (req/s) 78,968.90 25,513.00 3.09 : 1
1knogzip.jpg (req/s) 66,455.80 37,813.80 1.75 : 1
wordpress homepage (req/s) 31,285.80 6,117.31 5.11 : 1

Feedback