Small Static File Performance Benchmark https://download.litespeedtech.com/images/logos/litespeed/litespeed-logo.png 2019-11-20 19:23:05 Which responds to a static request faster via HTTP/2: LiteSpeed Web Server, nginx or Apache? We ran a series of Small Static File HTTP/2 benchmarks, to compare LSWS, nginx, and Apache. LiteSpeed responded 6X faster than nginx and 29X faster than Apache!

LiteSpeed is 6X Faster with Static Content!

LiteSpeed's HTTP/2 implementation performs better than nginx and Apache when handling small static files.

We compared web server response times when requesting small static files. Comparing small files is a standard practice for benchmarking, as this allows you to evaluate server performance without network saturation becoming an issue. In our testing, LiteSpeed outperformed nginx and Apache by as much as 6X and 29X, respectively.

You can run these same tests. We followed the methodology laid out on http2benchmark.org.


Summary

HTTP/2 Test Results

h2load -n 100000 -c 100 -t 1 -T 5 -m 10 -H 'Accept-Encoding: gzip,deflate' https://domain.com/1kstatic.html
Server Requests / Sec MB / Sec Failures Header Compression
LiteSpeed 167752 19.88 0 96.29%
Nginx 29645.1 6.59 0 35.52%
Apache 5704 0.82 0 87.16%

Small static file test shows LiteSpeed Web Server is 6X faster than Nginx and 29X faster than Apache.

HTTP 1.1 Test Results

wrk -c 100 -t 1 -d 5s -H 'Accept-Encoding: gzip,deflate' https://domain.com/1kstatic.html
Server Requests / Sec MB / Sec Failures Header Compression
LiteSpeed 78307.4 30.43 N/A N/A
Nginx 29209.6 10.58 N/A N/A
Apache 7341.4 2.93 N/A N/A

Small static file test shows LiteSpeed Web Server is 3X faster than Nginx and 11X faster than Apache.


Test Environment

  • Servers Tested:

    • LiteSpeed Web Server v5.4.1
    • nginx v1.16.1
    • Apache v2.4.41
  • Client Machine:

    • Memory Size: 991.09MB
    • CPU number: 1
    • CPU Model: Virtual CPU 6db7dc0e7704
    • Disk: NVMe SSD
  • Server Machine:

    • Memory Size: 991.09MB
    • CPU number: 1
    • CPU Model: Virtual CPU 6db7dc0e7704
    • Disk: NVMe SSD
  • Network:

    • Traffic: 9.02 Gbits/sec
    • Latency: 0.302 ms

accelerate internet
[

Accelerate Your Internet Now!

]

We welcome your feedback on our forum.