OpenCart Performance Benchmark https://litespeedtech.com/images/logos/litespeed/litespeed-logo.png 2019-11-20 16:57:17 Which loads OpenCart faster via HTTP/2: LiteSpeed Web Server, nginx or Apache? We ran a series of OpenCart HTTP/2 benchmarks, to compare LSWS + LSCache, nginx, and Apache. LiteSpeed OpenCart is considerably faster than uncached nginx and Apache!

OpenCart Runs 2000X Faster with LiteSpeed!

What a difference LiteSpeed Cache makes in OpenCart shops!

More than 2000X better performance than an uncached nginx or Apache site.

We tested LiteSpeed Web Server and LiteSpeed Cache extension on a demo OpenCart site, and it outperformed other HTTP/2 servers by a dramatic margin: more than 2000 time more requests/second! Given the lack of free OpenCart cache extensions, we were unable to test a cache solution with nginx or Apache.

We followed the methodology found at http2benchmark.org, meaning our results are verifiable and repeatable. If you are currently using OpenCart with nginx or Apache and you have a full page cache extension installed, we encourage you to run the same tests and share your results!


Summary

HTTP/2 Test Results

h2load -n 100000 -c 10 -t 1 -T 5 -m 10 -H 'Accept-Encoding: gzip,deflate' https://domain.com/opencart/
Server Requests / Sec MB / Sec Failures Header Compression
LiteSpeed 62119.6 275 0 96.13%
Nginx 26.1 0.12 0 25.56%
Apache 25 0.12 0 57.11%

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 2380X faster than Nginx and 2485X faster than Apache when loading OpenCart.

HTTP1.1 Test Results

wrk -c 100 -t 1 -d 5s -H 'Accept-Encoding: gzip,deflate' https://domain.com/opencart/
Server Requests / Sec MB / Sec Failures Header Compression
LiteSpeed 25763.9 120.32 N/A N/A
Nginx 19.55 0.1 N/A N/A
Apache 19.36 0.1 N/A N/A

LiteSpeed Web Server performs 1318X faster than Nginx and 1331X faster than Apache when loading OpenCart.


Test Environment

  • Server Tested:

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

    • OpenCart version: 3.0.3.2
    • LiteSpeed cache: LiteSpeed Cache for OpenCart
    • nginx cache: none
    • Apache cache: none
  • 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.304 ms