沧蓝 发表于 2008-2-25 11:08:59

【原创】LiteSpeed vs Apache 性能评测对比

用的Apache Benchmark 2.0。

软件:
Apache 2.2.3 + PHP 5.2.1 (mod_php), LiteSpeed 3.3.5 + PHP 5.2.5 (LSAPI 4.5) + XCache 1.2.1 + Suhosin 0.9.23

硬件:
Intel(R) Core(TM)2 Quad CPU @ 2.40GHz, 256MB RAM (是VPS不是独立服务器)

动态网页 (PHP)

Apache

Server Software:      Apache/2.2.3
Server Hostname:      不告诉你 :D
Server Port:            80

Document Path:          /wordpress/
Document Length:      69626 bytes

Concurrency Level:      1
Time taken for tests:   46.295309 seconds
Complete requests:      50
Failed requests:      0
Write errors:         0
Total transferred:      3495800 bytes
HTML transferred:       3481300 bytes
Requests per second:    1.08 [#/sec] (mean)
Time per request:       925.906 (mean)
Time per request:       925.906 (mean, across all concurrent requests)
Transfer rate:          73.72 received

Connection Times (ms)
            minmean[+/-sd] median   max
Connect:      0    0   0.0      0       0
Processing:   794925 163.7    875    1474
Waiting:      765910 160.9    869    1447
Total:      794925 163.7    875    1474

Percentage of the requests served within a certain time (ms)
50%    875
66%    901
75%    919
80%    945
90%   1029
95%   1430
98%   1474
99%   1474
100%   1474 (longest request)

LiteSpeed

Server Software:      LiteSpeed
Server Hostname:      不告诉你 :D
Server Port:            80

Document Path:          /wordpress/
Document Length:      69626 bytes

Concurrency Level:      1
Time taken for tests:   46.565238 seconds
Complete requests:      50
Failed requests:      0
Write errors:         0
Total transferred:      3495500 bytes
HTML transferred:       3481300 bytes
Requests per second:    1.07 [#/sec] (mean)
Time per request:       931.305 (mean)
Time per request:       931.305 (mean, across all concurrent requests)
Transfer rate:          73.30 received

Connection Times (ms)
            minmean[+/-sd] median   max
Connect:      0    0   0.0      0       0
Processing:   701930 171.0    882    1598
Waiting:      407639 120.7    597    1153
Total:      701930 171.0    882    1598

Percentage of the requests served within a certain time (ms)
50%    882
66%    917
75%    962
80%   1052
90%   1158
95%   1264
98%   1598
99%   1598
100%   1598 (longest request)

静态网页

Apache

Server Software:      Apache/2.2.3
Server Hostname:      不告诉你 :D
Server Port:            80

Document Path:          /wordpress/
Document Length:      69700 bytes

Concurrency Level:      50
Time taken for tests:   37.19618 seconds
Complete requests:      10000
Failed requests:      0
Write errors:         0
Total transferred:      700449648 bytes
HTML transferred:       697766700 bytes
Requests per second:    270.13 [#/sec] (mean)
Time per request:       185.098 (mean)
Time per request:       3.702 (mean, across all concurrent requests)
Transfer rate:          18477.55 received

Connection Times (ms)
            minmean[+/-sd] median   max
Connect:      0    0   4.0      0   101
Processing:   0183 197.9    145    2693
Waiting:      013490.7    128    1086
Total:          0183 197.8    146    2693

Percentage of the requests served within a certain time (ms)
50%    146
66%    156
75%    164
80%    170
90%    215
95%    485
98%    852
99%   1159
100%   2693 (longest request)

LiteSpeed

Server Software:      LiteSpeed
Server Hostname:      不告诉你 :D
Server Port:            80

Document Path:          /wordpress/
Document Length:      69700 bytes

Concurrency Level:      50
Time taken for tests:   12.495997 seconds
Complete requests:      10000
Failed requests:      0
Write errors:         0
Total transferred:      700889164 bytes
HTML transferred:       698324300 bytes
Requests per second:    800.26 [#/sec] (mean)
Time per request:       62.480 (mean)
Time per request:       1.250 (mean, across all concurrent requests)
Transfer rate:          54774.50 received

Connection Times (ms)
            minmean[+/-sd] median   max
Connect:      0    2   6.2      1      55
Processing:   2   5927.4   59   401
Waiting:      1   5527.1   56   399
Total:          2   6127.0   60   401

Percentage of the requests served within a certain time (ms)
50%   60
66%   61
75%   62
80%   64
90%   76
95%   86
98%   94
99%   97
100%    401 (longest request)

如果你有兴趣的话,更具体的可以到我博客去看看:http://thislab.com/2008/02/25/benchmark-litespeed-vs-apache-php-and-plain-html/

另外还发布了 LiteSpeed + LxAdmin 共存安装的教程:http://thislab.com/2008/02/25/how-to-guide-to-install-litespeed-with-or-without-apache-on-lxadmin-host-in-a-box/

:D

Hex 发表于 2008-2-25 12:01:13

好帖子,顶~~
不过 LiteSpeed 好用吗?

sam 发表于 2008-2-29 14:53:11

俺。。一窍不通。。。:L

BruceWolf 发表于 2008-3-14 23:33:35

路过、回头、顶起!
主要是不能并排看,挺郁闷的,下次要生成图表就爽了:lol
页: [1]
查看完整版本: 【原创】LiteSpeed vs Apache 性能评测对比