Small Static File Benchmark
OpenLiteSpeed vs. nginx and Apache
OpenLiteSpeed outperformed nginx and Apache by as much as 6X and 29X, respectively, when loading small static files over HTTP/2. You may wonder what we can learn from testing such small files, but this is standard practice for benchmarking. Comparing small files, this allows us to evaluate server performance independent of any network saturation issues.
The Results
OpenLiteSpeed performed 6X better than nginx and 29X better than Apache when serving small static files over HTTP/2.
h2load -n 100000 -c 100 -t 1 -T 5 -m 10 -H 'Accept-Encoding: gzip,deflate' /1kstatic.html
Server | Finished In Sec | Requests/Sec | MB/Sec | Failures | Header Compression |
---|---|---|---|---|---|
OpenLiteSpeed | 0.60 | 167752 | 19.88 | 0 | 96.29% |
nginx | 3.37 | 29645.1 | 6.59 | 0 | 35.52% |
Apache | 17.53 | 5704 | 0.82 | 0 | 87.16% |
Try It Yourself
It’s easy to verify these results. Simply visit http2benchmark.or, and follow the methodology laid out there to run the exact same tests in your own favorite environment.
Test Environment
Server Tested
- OpenLiteSpeed V1.6.4
- nginx V1.16.1
- Apache V2.4.41
Client Machine
- Memory Size: 1GB
- CPU number: 1
- CPU Threads: 1
- CPU Model: Virtual CPU 6db7dc0e7704
- Disk: NVMe SSD
Server Machine
- Memory Size: 1GB
- CPU number: 1
- CPU Threads: 1
- CPU Model: Virtual CPU 6db7dc0e7704
- Disk: NVMe SSD
Network
- Traffic: 9.25 Gbits/sec
- Latency: 0.324 ms
Cloud VM
- Vultr High Frequency Compute 1GB VM