• Skip to primary navigation
  • Skip to main content
  • Skip to footer

WPJohnny

WordPress Performance Guides and Reviews

  • Start a WordPress site
  • Hosting
  • Themes
  • Plugins
  • Blogging
  • Marketing

LiteSpeed vs NGINX – performance comparison and history

WordPress hosting Oct 15, 2019 by Johnny 28 Comments

A quick showdown between LiteSpeed and NGINX…two of the greatest high-performance web servers.

What’s the history behind LiteSpeed and NGINX? Which one is faster? Which one handles more traffic? Which one is better for you?!

Read on and find out…

Which one is faster? (OpenLiteSpeed or NGINX?)

I really intended for this guide to be comprehensive. I really did. I put together testing servers and everything. Signed up for different NGINX stacks and compared them against OLS. I’m just like you and everyone else. I wanted to know what their real-world performance was. How fast they were out of the box. I didn’t care about all the micro-improvements made to get there. I pit them side-by-side in the most unbiased controlled testing environment possible. I’m no expert but did my best to provide what I thought was fair testing. I also made benchmark charts and what not.

Testing setup:

  • Stacks compared – OLS running off CyberPanel vs 3 variants of NGINX (RunCloud, GridPane, SpinupWP)
  • Datacenter – all were using Linode except for SpinupWP (using Digital Ocean) because setup was clunky with any provider other than DO. Sure, I could have figured it out but with the time I spent I can assure you most newbies won’t have been able to. So too bad!
  • Stack configurations – all running the latest version of PHP 7.3, mariaDB, blah blah blah. RunCloud had a months-older PHP 7.3.4 (instead of latest PHP 7.3.8). I used out of the box configurations without trying to tweak or tune anything to their best settings. Whatever they came out of the box with is what they get.
  • Caching configurations compared – OLS, I tested with LS cache on and off. NGINX, I compared with FastCGI caching on and off. GridPane only allowed REDIS object caching for the cheap plan so that’s what I tested. RunCloud, I couldn’t enable FastCGI caching after trying configurations for 30 minutes so too bad, I will assume most users won’t be able to either and I tested it without FCGI.
  • Load test used – loader.io, I put 10,000 clients over 1 minute on GET method through HTTPS variant of the target site. Also re-ran things a couple times to make sure there were no outlier results.

Results & Final thoughts

“What?! Results already? Where the charts?”

I’m not even going to waste your time or anymore of mine. The benchmark charts don’t show anything useful.

  • OpenLiteSpeed and NGINX are just about equal in performance with caching on.

1st place was GridPane (NGINX with Redis object caching)

  • averaged 67ms out of 10k requests
  • trying it with FastCGI caching was a hair slower (interesting since they say their FCGI caching is faster than Redis)

2nd place was OpenLiteSpeed on CyberPanel (with LiteSpeed cache enabled)

  • averaged 68ms out of 10k requests
  • so like 1ms slower than GP. It’s unnoticeable!

3rd place was SpinupWP (NGINX with FastCGI caching)

  • averaged 70ms

4th place was RunCloud (NGINX without FastCGI caching)

  • failed and could not handle after about 35 requests
  • EDIT: Apr 2020 – RunCloud now uses their RunCache (I assume it’s FastCGI) and can now hold its own with all the rest.

I also tried all of them without caching on and all of them failed. Sure you can try in the browser on your own time to see which one is faster without cache but I lost interest at this point. NGINX and OLS are close enough in performance that it shouldn’t be the deciding factor between which one you use. Use the one the one that’s cheaper for you, more compatible with your applications/panels, offers you more features or more webhosting convenience.

So what does this test mean? That NGINX is marginally faster than OLS? Sure. That could be true. Or it could be that the NGINX stack was better configured. I’ll always have a massive preference for LS & OLS because of their LiteSpeed caching plugin. Tons of features, super stable, and integrates at the server level. NGINX has yet to have one and that sets it apart for me. Then factor in LS crawler features, htaccess compatibility, and it pulls ahead even further. Yes, NGINX is free but so is OLS (free version of LS).

Ha…looks like it’s time for you to play with them on your own. By all means, run your own tests and see what you like best. Anybody claiming one is incredibly superior than the other is either biased or hasn’t tested them side-by-side.

Want to read more on LiteSpeed vs NGINX?

  • Learn the history of web servers

Share this post:

Share on FacebookShare on X (Twitter)Share on LinkedInShare on WhatsAppShare on EmailShare on SMS

Read all my posts on WordPress hosting

About Johnny

Right on the edge of WordPress development! 10+ years of WordPress design, development, hosting, speed optimization, product advisor, marketing, monetization. I do all that.

More WordPress Guides

Should You Quit College?

Neve review – fun cloud theme for WordPress

Why LiteSpeed Cache is the #1 cache plugin for me

Open-Source FILE MANAGER script comparison

Cache plugins suck!

GeneratePress vs Astra (WordPress theme comparison)

Reader Interactions

28 Comments

  1. Darkpollo

    October 30, 2019 at 5:46 am

    Did you try RunCloud with Redis?

    Thanks

    Reply
    • Johnny

      October 30, 2019 at 11:51 am

      I believe so, yes. RunCloud is fine. Just not the fastest. Great UI and developer environment. I’ve written many bits about RC.

      Reply
  2. Phil

    December 11, 2019 at 7:28 am

    Out of curiosity: did you ever test OpenLiteSpeed vs LSWS Enterprise?

    Reply
    • Johnny

      December 11, 2019 at 1:08 pm

      I have tested both side-by-side and their performance virtually the same for raw benchmarks. It’s that LSWS Enterprise can do more things which result in better performance, security and ease-of-use in a real-world environment.

      Reply
    • Ivan

      June 30, 2020 at 8:50 am

      not sure why but i did a quick test deploying from cyberpanel openlitespeed and the default config is slow compared, with the one click installer of do. I get around 15ms with loader.io.
      I will compare comfigurations this days.

      Reply
      • Phil

        July 1, 2020 at 12:17 am

        Switched back from CyberPanel/OLS to Ploi/NGiNX for my Dev server, because while OLS was very speedy in the frontend, working in WP backend was noticeably slower on CyberPanel. All DB accesses were about half as fast on the CyberPanel setup compared to Ploi. Admittedly runcloud was even a bit faster, but I like small teams and also Ploi is from the Netherlands, so they certainly take GDPR very seriously.
        All servers were the same level of Hetzner cloud instances.

        Reply
        • Johnny

          July 1, 2020 at 12:30 am

          Thanks for this report, Phil. I have Ploi on my review list at some point. I wonder if the faster backend you’re sensing is because of Ploi enabling Redis on backend by default.

          Reply
          • Phil

            July 1, 2020 at 1:12 am

            Redis is indeed running by default on a Ploi server, as is memcached. However, I didn’t change the WP setup to actually make use of Redis, so I don’t think it has much if any influence on perceived speed.
            Because it’s a shared DEV server with lots of PHP changes, OPCache is turned off – that’s the one cache WP would use and profit from without having to setup any advanced-cache.php… at least that’s my feeble understanding of these things 🙂

          • Johnny

            July 1, 2020 at 1:20 am

            No worries. I’ll just have to try it later at some point. I do like that their interface is very much like RunCloud’s. Very clean and admin/dev friendly.

  3. Dshan

    April 29, 2020 at 2:58 pm

    Am I reading correctly? Runcloud could not handle 35 requests as compared to GridPanes 10k? Damn

    Reply
    • Johnny

      April 29, 2020 at 3:37 pm

      Yeaup, you read it correctly. Sure if I enable consumer-grade plugin, it will be able to but that’s a different comparison altogether. To be fair, I believe RunCloud will have some changes soon that I think will bring them right back up. I still love their panel a lot.

      Reply
  4. Haku Nguyen

    June 3, 2020 at 1:32 am

    “OpenLiteSpeed and NGINX are just about equal in performance with caching on.”
    Thank you for your honest, I’ve confused between them two, but I’ll go with OLS 🙂

    Reply
    • Johnny

      June 3, 2020 at 2:06 am

      Yes, try the free version. Then if you need certain specific features, you can upgrade then. I have LiteSpeed Enterprise and love it but that doesn’t mean everyone else needs it.

      Reply
  5. STN

    June 12, 2020 at 6:19 am

    Thanks Johnny for not writing a million words article written for Google and getting to the results that we want to see.

    I heard about openlitespeed and going to try it. If its easier to manage than nginx, i am going to go with OLS then.

    Reply
    • Johnny

      July 29, 2020 at 10:39 pm

      “Thanks Johnny for not writing a million words article”….hahaha, yes! That’s exactly what I believe. I’m so sick of those silly long articles with no helpful information whatsoever.

      Reply
  6. Adrian

    June 26, 2020 at 7:38 am

    I was searching for such comparison, however I was also interested in Apache. I get ~120 ms for the same loader.io setup for my Apache.

    Reply
  7. Dung Dao

    July 29, 2020 at 9:55 pm

    NGINX FastCGI Cache vs Litespeed cache | which the best bro?

    Reply
    • Johnny

      July 29, 2020 at 10:38 pm

      Read my entire site if you want the answer.

      Reply
      • Dung Dao

        July 29, 2020 at 11:15 pm

        Thanks

        Reply
  8. Hai

    August 5, 2020 at 6:00 am

    For me, nginx with w3tc plugin + memcache is faster than ols cache

    Reply
  9. Michiel

    December 14, 2020 at 7:44 am

    So have you tested Runcloud with their new caching setup and what are your experiences? I’ve been testing them out, but performance is for some strange reason massively behind (up to 400%) the other panels that use FastCGI (eg GridPane, Ploi, SpinupWP)

    Reply
    • Johnny

      December 14, 2020 at 9:49 am

      I found the new RC caching to be much more comparable. 400% behind GP doesn’t sound right.

      Reply
      • Michiel

        December 15, 2020 at 12:09 am

        Thanks for your fast reply Johnny! Looks like something is off indeed. I tried to sort it out with support, but still, something must be going wrong. I can easily get 1100 concurrent users on a $6 Vultr HF with GP, but on RC I don’t get past the 200-300 range. Also, the number of uncached concurrent users is lower (7 versus 11).

        Time to do some retesting.

        Reply
  10. Sakthi

    August 20, 2021 at 9:54 am

    Runcloud have their own OpenLiteSpeed stack now, do you think it might make a performance difference then others in this comparison.

    Reply
    • Johnny

      August 21, 2021 at 12:39 am

      I tried once and it didn’t go so smooth. I’ll have more to say once I finally try it again.

      Reply
  11. Mukesh Patel

    November 15, 2022 at 3:33 am

    Which is better —
    1. NGINX Server + FastCGI Cache + Redis Object Cache + WP Rocket (Us it with WordOps panel)
    2. OLS + LSCache(Redis Object Cache Enable) {Use it via CyberPanel
    Please guide me, which one is better because I am confused because many says NGINX is faster and Litespeed shows wrong number, where some say OpenLiteSpeed is faster, too much confusing.

    Reply
  12. Mộng mơ

    April 19, 2024 at 10:47 pm

    I used Litespeed and like it. I didn’t select others because my hosting provider offer Litespeed ^^

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Footer

More links

  • Gadget reviews
  • Try my free WPJ plugins
  • Join the WPJ FB Group
  • WPJ YouTube & newsletter
  • Become a WPJ Affiliate

Popular Reviews

  • Best WordPress Hosting
  • Best WordPress Themes
  • Best WordPress Plugins
  • Best WordPress Cache Plugins

Services

  • Speed optimization
  • Speed optimization courses
  • WordPress hosting
  • Hire me or other experts
  • Client login

About Johnny

10+ years of WordPress design, development, hosting, speed optimization, marketing.
Contact me.

newsletter block

Copyright 2025 | WordPress guides by Johnny Nguyen

Click to Copy