Small Static File Benchmark

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.

OpenLiteSpeed + LSCache 167752 Requests Per Second
Nginx + FastCGI Cache 29645.1 Requests Per Second
Apache + W3 Total Cache 5704 Requests Per Second
h2load   -n 100000 -c 100 -t 1 -T 5 -m 10 -H  'Accept-Encoding: gzip,deflate' /1kstatic.html

ServerFinished In SecRequests/SecMB/SecFailuresHeader Compression
OpenLiteSpeed0.6016775219.88096.29%
nginx3.3729645.16.59035.52%
Apache17.5357040.82087.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