Drupal Performance Benchmark https://www.litespeedtech.com/images/logos/litespeed/litespeed-logo.png 2019-10-08 21:40:23 Which loads Drupal faster via HTTP/2: LiteSpeed Web Server, nginx or Apache? We ran a series of Drupal HTTP/2 benchmarks, to compare LSWS + LSCache, nginx + Varnish, and Apache + Varnish. LiteSpeed Drupal is 6X faster than nginx and 14X faster than Apache!

Drupal Gets 6X Boost from LiteSpeed Cache!

Drupal sites perform more than 6X faster with LiteSpeed Cache than with nginx or Apache plus Varnish.

We put LiteSpeed Web Server with our LiteSpeed Cache module for Drupal to the test, paired against nginx with Varnish and Apache with Varnish. LiteSpeed came out ahead, loading a Drupal demo site up to 6 times faster than nginx and up to 14 times faster than Apache.

We followed the methodology found at http2benchmark.org, meaning our results are verifiable and repeatable.


Summary

h2load -n 100000 -c 10 -t 1 -T 5 -m 10 -H 'Accept-Encoding: gzip,deflate' https://domain.com/drupal/
Server Requests / Sec MB / Sec Failures Header Compression
LiteSpeed 58868.2 161.75 0 96.35%
Nginx 8064.8 26.2 0 18.96%
Apache 4274.1 12.07 0 89.4%

Please note: we usually run the h2load test with -c 100, but in this case there were too many errors occurring with nginx and Apache. We reduced -c to 10 for this reason.

LiteSpeed Web Server performs 7X faster than Nginx and 14X faster than Apache when loading Drupal.

wrk -c 100 -t 1 -d 5s -H 'Accept-Encoding: gzip,deflate' https://domain.com/drupal/
Server Requests / Sec MB / Sec Failures Header Compression
LiteSpeed 23850.4 78.65 N/A N/A
Nginx 8324.59 28.69 N/A N/A
Apache 4286.43 14.66 N/A N/A

LiteSpeed Web Server performs 3X faster than Nginx and 6X faster than Apache when loading Drupal.


Test Environment

  • Server Tested:

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

    • Drupal version: 8.7.7
    • LiteSpeed cache: LiteSpeed Cache for Drupal
    • nginx cache: Varnish 5.2.1
    • Apache cache: Varnish 5.2.1
  • 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: 8.84 Gbits/sec
    • Latency: 0.383 ms