Hi,
I am currently moving a website from Apache to Litespeed. Currently both sites are running, so I can easily compare the performance. These tests showed the following:
- lsws total response times for php pages are much faster (sometimes twice as fast)
- response times for static files like images and javascript are about the same
But there is one thing I don't understand: the time for the first byte is much longer with lsws than with apache. lsws makes up for that easily in delivering the page faster, but I would like to know why that is. When surfing the pages you get the following impression:
- apache: the page begins to render immediately but it takes quite long to complete
- lsws: it takes some time until anything happens, but then it finishes real quick
here is some test data (only html/php, no images, page from a PHP/MySQL-intensive CMS)
lsws:
total Response Time: 1.759 sec
DNS: 0.238 sec
Connect: 0.017 sec
First byte: 1.194 sec
Last byte: 0.309 sec
apache:
total Response Time: 2.690 sec
DNS: 0.317 sec
Connect: 0.018 sec
First byte: 0.390 sec
Last byte: 1.964 sec
versions:
Apache 1.3, PHP 4.4
lsws 3.1.1, PHP 5.2.2 with APC (lsapi 4.0)
It looks like lsws is waiting with sending the page out until it is complete and apache begins to send immediately.
Can anyone explain this behaviour?
Thanks
Daniel
I am currently moving a website from Apache to Litespeed. Currently both sites are running, so I can easily compare the performance. These tests showed the following:
- lsws total response times for php pages are much faster (sometimes twice as fast)
- response times for static files like images and javascript are about the same
But there is one thing I don't understand: the time for the first byte is much longer with lsws than with apache. lsws makes up for that easily in delivering the page faster, but I would like to know why that is. When surfing the pages you get the following impression:
- apache: the page begins to render immediately but it takes quite long to complete
- lsws: it takes some time until anything happens, but then it finishes real quick
here is some test data (only html/php, no images, page from a PHP/MySQL-intensive CMS)
lsws:
total Response Time: 1.759 sec
DNS: 0.238 sec
Connect: 0.017 sec
First byte: 1.194 sec
Last byte: 0.309 sec
apache:
total Response Time: 2.690 sec
DNS: 0.317 sec
Connect: 0.018 sec
First byte: 0.390 sec
Last byte: 1.964 sec
versions:
Apache 1.3, PHP 4.4
lsws 3.1.1, PHP 5.2.2 with APC (lsapi 4.0)
It looks like lsws is waiting with sending the page out until it is complete and apache begins to send immediately.
Can anyone explain this behaviour?
Thanks
Daniel