Litespeed vs Nginx high-traffic server performance?

7,049

What do you think about those benchmarks? 4x, 10x faster?

Well, the benchmarks are quite real - the benchmark is done using LiteSpeed webserver 5.4 (which is rather "new") which got a big overhaul in terms of http/2 and https performance.

If we compare nginx to LiteSpeed webserver 5.3, then nginx and litespeed are a whole lot closer in terms of performance (LiteSpeed still being a bit faster at least based on my benchmarks as well).

For HTML files, one place where LiteSpeed does really well is handling gracefully whether the client asks for gzipped content or not - where nginx for some reason likes to store things uncompressed when using fastcgi_cache, and it's kind of odd because you'd assume the webserver would be built towards the majority of traffic (which in many web applications will be compressed content).

People are always saying "LEMP is the fastest stack."

Likely because they haven't really been looking for the "fastest stack" but simply compare Apache and nginx, and then sure it's the fastest if you compare Apache and nginx.

Why these top-level websites don't prefer Litespeed?

When you look in the past, not only for webservers but also for other software such as browsers - it can take years before people start to catch up and consider using a different browser or in this case which webserver stack to use. There was also a long period of time where a far majority of websites would use Apache over nginx.

Big sites are often hard to just change software on, because you want to make sure that everything continues to work - downtime might be tons of money lost.

So because you have to invest time in it, it might mean that the benefits don't outweigh the time you have to spend switching to another setup, or maybe you want to change, but simply don't have the time or resources to do it.

But again, I think it's important to point out that LiteSpeed webserver 5.4 is rather recent, and that's where it's really killing the competition, and it for sure will take time before people consider the switch.

But it's for sure an interesting topic.

Personally, I think nginx got to the point where they feel they're the "top of the line" solution and the innovation/effort to continue to make it better is getting less and less.

Share:
7,049

Related videos on Youtube

Serdar Koçak
Author by

Serdar Koçak

Updated on September 18, 2022

Comments

  • Serdar Koçak
    Serdar Koçak over 1 year

    Most top-level (high-traffic) websites use Nginx web servers. This community has many members who are experts about systems and servers, so I want to ask for feedback on which server can handle top-level websites better in your experience?

    Personally I have always used Nginx for all my projects. Most developers are always saying that "LEMP is the fastest stack" but the benchmarks published by Litespeed claim they are 4x or 10x faster than an Nginx web server stack...

    https://www.litespeedtech.com/compare-http2-performance-litespeed-vs-nginx?utm_source=cyberpanel&utm_medium=forums

    If that's true then why don't top-level websites prefer Litespeed?

    • Jesse Nickles
      Jesse Nickles almost 3 years
      Nginx is more robust (it's not even close). The Litespeed crew were caught posting fake benchmarks around the web showing Nginx "slower" because they had disabled FastCGI cache during the tests... extremely dishonest. Their main target is cPanel and shared hosting companies, hence their focus on WordPress marketing: reddit.com/r/selfhosted/comments/f06vse/…
    • Jesse Nickles
      Jesse Nickles over 2 years
      Update: a few third parties have benchmarked Nginx and Litespeed in the past few years, see my recent response: stackoverflow.com/questions/60701073/…
  • Serdar Koçak
    Serdar Koçak over 4 years
    thank you for the detailed information. I really appreciate it! I tried the Openlitespeed before and I don't like it. To be honest, I want to give a chance to see Litespeed performance.
  • LucasRolff
    LucasRolff over 4 years
    Performance-wise, the enterprise version does a whole lot better than OpenLiteSpeed does (at least currently), so you'd indeed see better scalability there. Additionally the fact you have true .htaccess support without having to restart the webserver, as well as being able to read apache configuration directly if you want, means it makes it super easy to "drop in" for an existing apache environment. I've personally got rid of most of my nginx servers for OLS or LSWS :)
  • Sahriar Saikat
    Sahriar Saikat over 4 years
    @LucasRolff Openlitespeed also has htaccess support. I dont know when it is added but it was there when I switched 3-4 months ago.
  • Jesse Nickles
    Jesse Nickles almost 3 years
    Lucas, I mean you may want to disclose that your company, Hosting4Real, is a Litespeed partner and they have promoted your services on their blog previously. But besides that, and your evidence-free answer, sure I guess Litespeed must be faster than Nginx, which is why every single high-traffic website uses Nginx lol. Tired of the dishonesty...
  • LucasRolff
    LucasRolff almost 3 years
    Hi Jesse! > Hosting4Real, is a Litespeed partner If you have enough services with LiteSpeed, you can apply for becoming a partner, which gives you discounts on the licenses. Anyone would do that if they use/pay for a service, and they can give a discount by filling out a form :) > and they have promoted your services on their blog previously They mentioned my name in a blogpost due to modsec implementation solved an issue.
  • LucasRolff
    LucasRolff almost 3 years
    > sure I guess Litespeed must be faster than Nginx Benchmark it! > which is why every single high-traffic website uses Nginx lol Also many sites use PHP despite being slower than .net core :) Not sure what the point is. I mean litespeed is a paid piece of software. Not many people use nginx-plus either, but the free one. > Tired of the dishonesty Nothing dishonest. You can simply benchmark things yourself to verify it. By the way, I also run plenty of nginx servers. Each has their own use-case to which webserver is selected. That's the benefit of the "free" market.