Litespeed Vs. Apache web server - Real world page loading speed test results

So a few days ago, we asked all our members whether the site was loading slower for all of you and almost everyone said yes. Upon inspection, I discovered that the pages were being served by Apache web server and not Litespeed - which we had configured. It so happened that a license issue of Litespeed caused the webserver go down and automatically switch to Apache. As a result, the pages were loading slower and the ajax requests (for example @#-Link-Snipped-# tagging) were being served with an annoying delay. Though we were unaware of the problem, we didn't have graphs or stats to discover what's the overall impact.

Thankfully, Google Webmaster Tools (GWT) came to our rescue, exactly showing how Google viewed CrazyEngineers. Check the graph which I just obtained from GWT.

crazyengineers

The hills you see in the graph were created when the site was running on Apache Web Server. After correcting the license issue, the page loading times were back to normal. We've all the reasons to believe that average page loading speeds of about ~200 - 250 milliseconds is extremely fast for a site like ours (lot of content, users and images).

LiteSpeed is a drop-alternative to Apache web server, which apparently is the most popular web server. Note that we're running a commercial version of the server as against the free software - Apache. I've heard that webmasters have noticed similar improvements with NGIX; but I've no tests or access to test machines to check it all by myself.

If anyone of you has had a chance to play with different web servers, please let me know your observations. I'm curious to know what exactly Litespeed does differently that it gains that much of an edge over apache?

Replies

  • avii
    avii
    I played with Yaws, hyber.org. Its also faster than Apache
  • lsmichael
    lsmichael
    Howdy,

    LiteSpeed Technologies here. There are a number of differences between LiteSpeed Web Server (LSWS) and Apache. The largest difference is LSWS's Event-Driven vs. Process-Based Web Servers - LiteSpeed Technologies, which means that it handles multiple connections much better, using less CPU and RAM, and pulls out static content much faster. A page like this, using Xenforo, which is written in PHP, will also see some performance benefits from our use of #-Link-Snipped-#.

    Hope that helps clear things up. Glad LSWS is helping you so much.

    Cheers,

    Michael
  • Kaustubh Katdare
    Kaustubh Katdare
    @#-Link-Snipped-# - It's a pleasure to have you with us on CE. I can confirm that Litespeed handles load much better than Apache; we've had record number of simultaneous users online a few days ago and LSWS didn't acknowledge that there was load. Apache would have gone down for similar loads; as it did in the past.

    Would love to know what exactly does LSAPI offer which result into faster PHP performance?
  • Anand Tamariya
    Anand Tamariya
    I think the performance of LSAPI is good only for PHP because it focuses on that. Apache on the other hand is a generic webserver and works for variety of use-cases given one understands how to tune it properly.
  • lsmichael
    lsmichael
    Howdy again.

    I think the performance of LSAPI is good only for #-Link-Snipped-# because it focuses on that.
    LSAPI provides better-than-Apache performance for PHP, Ruby, and now Python: #-Link-Snipped-#

    We do have the longest history working with PHP and PHP LSAPI has the most features of all the LSAPI modules.

    #-Link-Snipped-# on the other hand is a generic webserver and works for variety of use-cases given one understands how to tune it properly.
    It is true that in some (many?) cases Apache optimization can achieve results similar to LSWS (especially if you're willing to buy hardware to make up for Apache's CPU and memory usage issues). But I feel like many people, especially experienced sysadmins, like to say what you've said — that you can tune Apache to do what LSWS does. That statement, I feel, ignores the fact that tuning Apache is not a simple task. It may be possible, but it is time-consuming, even for experienced sysadmins, and expensive if you have to pay someone else to do it.

    Would love to know what exactly does LSAPI offer which result into faster #-Link-Snipped-#performance?
    Most of the difference is actually just code optimization. In different environments (like shared hosting) the extra features, like suEXEC daemon mode which then allows for effective opcode caching, can also make a big difference.

You are reading an archived discussion.

Related Posts

Curious to know whether 4K displays always have a higher pixel density than the regular 1080p? If the sizes of the display are to be kept fixed, say 55"; is...
My class wil have a presentation discuss about the best software simulation. We discuss between two software those are ORCAD/PSPICE and MULTISIM. My group've chosen ORCAD/PSPICE software. So, Could you...
On the other day of my class my lecturer did a wonderful lecture on oval pistons. So i am here to share it with you with some small doubts in...
I am working with a project that uses PIC16F887 to be interfaced with GSM, GPS and rf module. Here in the circuit can someone tell how rs485 works and is...
Now a days sensors are being used for detection of objects while taking reverse. A sound will be making us realize that there is some object in the back. Now...