Why LSWS slower than Apache 1.3 on my server ?

#1
/usr/local/apache/bin/ab -n 500 -c 10 localhost:82/index.php

Server Software: Apache/1.3.34
Document Path: /index.php
Document Length: 34672 bytes

Concurrency Level: 10
Time taken for tests: 8.577 seconds
Complete requests: 500
Failed requests: 39
(Connect: 0, Length: 39, Exceptions: 0)
Broken pipe errors: 0
Total transferred: 17448165 bytes
HTML transferred: 17306165 bytes
Requests per second: 58.30 [#/sec] (mean)
Time per request: 171.54 [ms] (mean)
Time per request: 17.15 [ms] (mean, across all concurrent requests)
Transfer rate: 2034.30 [Kbytes/sec] received

Connnection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 1.0 0 23
Processing: 26 169 97.5 153 648
Waiting: 25 168 97.6 153 648
Total: 26 169 97.6 153 648

Percentage of the requests served within a certain time (ms)
50% 153
66% 181
75% 212
80% 225
90% 288
95% 362
98% 460
99% 549
100% 648 (last request)


/usr/local/apache/bin/ab -n 500 -c 10 localhost/index.php

Server Software: LiteSpeed
Server Port: 80

Document Path: /index.php
Document Length: 34672 bytes

Concurrency Level: 10
Time taken for tests: 9.484 seconds
Complete requests: 500
Failed requests: 28
(Connect: 0, Length: 28, Exceptions: 0)
Broken pipe errors: 0
Total transferred: 17530433 bytes
HTML transferred: 17457258 bytes
Requests per second: 52.72 [#/sec] (mean)
Time per request: 189.68 [ms] (mean)
Time per request: 18.97 [ms] (mean, across all concurrent requests)
Transfer rate: 1848.42 [Kbytes/sec] received

Connnection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 1
Processing: 28 186 98.8 167 666
Waiting: 28 186 98.7 167 665
Total: 28 186 98.8 167 666
ERROR: The median and mean for the initial connection time are more than twice the standard
deviation apart. These results are NOT reliable.

Percentage of the requests served within a certain time (ms)
50% 167
66% 207
75% 240
80% 265
90% 310
95% 368
98% 441
99% 536
100% 666 (last request)

I already repeated this test with different -n and -c numbers but apache is faster than Lite Speed (standart) at all tests.

For example: with ab -n 1000 -c 1 options, got following results:
with Apache:
Requests per second: 35.84 [#/sec] (mean)
Time per request: 27.91 [ms] (mean)
Time per request: 27.91 [ms] (mean, across all concurrent requests)
Transfer rate: 1252.68 [Kbytes/sec] received

with LSWS:
Requests per second: 33.04 [#/sec] (mean)
Time per request: 30.27 [ms] (mean)
Time per request: 30.27 [ms] (mean, across all concurrent requests)
Transfer rate: 1150.26 [Kbytes/sec] received

I installed LSWS with default options. LS SAPI & TurckMMCache has been installed and php files runs correctly but slower than apache. I'm not using any php accelerator with Apache. (php version is: 4.3.11 with Apache)

What's wrong? What should i do? This server has ~300.000 unique visitors daily and i'm looking for more performance according to Apache..

Thanks
 

mistwang

LiteSpeed Staff
#2
You have to use the same version of php, and same opcode cache when you compare performance of two server. And same php.ini should be used.

LSWS std has slightly better PHP performance than apache 1.3 in our lab environment.
 
Top