Opencart Benchmarks https://www.litespeedtech.com/images/logos/litespeed/litespeed-logo.png 2019-08-15 20:29:10 LiteSpeed Cache for OpenCart maximizes OpenCart performance. See our OpenCart Benchmark perform results against Nginx.

LiteSpeed Cache Maximizes OpenCart Performance

OpenCart with LiteSpeed and LSCache vs. OpenCart with NGINX

LiteSpeed Cache for OpenCart Logo

We ran OpenCart on LiteSpeed Web Server and OpenLiteSpeed with our new LiteSpeed Cache for OpenCart Extension, and compared them to OpenCart on NGINX. Given the lack of free OpenCart cache extensions, we were unable to test a cache solution with NGINX. If you are currently using OpenCart with NGINX and you have a cache extension installed, we encourage you to compare. We'd love to see your results!

All tests were performed with Keep-Alive enabled. (See more common settings under Web Server Configuration below.)

The Results

The following charts show how many requests per second the three servers processed during our series of tests. The larger the number, the better.

As you can see, both LiteSpeed servers with LSCache outperform uncached NGINX by a significant amount.

Try it Yourself

Here are the specs of our web server configuration and test environment below. Feel free to run the same benchmarks and do your own comparison.

This is the command we used in all tests (Replace example.com/path with the location of your test subjects):

ab -n 10000 -k -H "Accept-Encoding: gzip,deflate" -c 10 example.com/path

Each test was run five times, and the average result was used for our graphs.


Test Environment

  • Common Settings For Web Servers

    • Keep-Alive
    • gzip
    • OPCache
    • PHP use socket
  • Additional OpenLiteSpeed settings

    • Number of Workers = 4
    • PHP_LSAPI_CHILDREN = 20
    • LSAPI_AVOID_FORK = 1
  • Additional NGiNX settings

    • worker_processes = 4
    • worker_connections = 4096
    • pm.start_servers = 20
  • Web Server Version

    • LiteSpeed Enterprise: v5.3.6
    • OpenLiteSpeed: v1.4.28
    • NGiNX: v1.12.2
  • Server API version

    • LiteSpeed Enterprise: LSAPI v7.1
    • OpenLiteSpeed: LSAPI v7.1
    • NGiNX: FPM/FastCGI
  • PHP Version

    • LiteSpeed Enterprise: PHP 7.1.23
    • OpenLiteSpeed: PHP 7.1.23
    • NGiNX: PHP 7.1.23
  • Cache Version

    • LiteSpeed Enterprise: LSCache for OpenCart 1.0
    • OpenLiteSpeed: LSCache for OpenCart 1.0
    • NGiNX: None
    • OpenCart version: 3.0.2.0
  • Client and Server Specs

    • Intel Xeon CPU E7- 4870 4 Core @ 2.40GHz
    • 4GB RAM
    • 120GB ZFS RAID-Z2 iSCSI Drive
  • OS

    • CentOS7

Although we didn’t use one for our benchmarks, We recommend Solid State Drives (SSD) in production environments.