用户
 找回密码
 入住 CI 中国社区
搜索
查看: 7555|回复: 3
收起左侧

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

[复制链接]
发表于 2008-2-25 11:08:59 | 显示全部楼层 |阅读模式
用的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:        不告诉你
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 [ms] (mean)
Time per request:       925.906 [ms] (mean, across all concurrent requests)
Transfer rate:          73.72 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:   794  925 163.7    875    1474
Waiting:      765  910 160.9    869    1447
Total:        794  925 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:        不告诉你
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 [ms] (mean)
Time per request:       931.305 [ms] (mean, across all concurrent requests)
Transfer rate:          73.30 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:   701  930 171.0    882    1598
Waiting:      407  639 120.7    597    1153
Total:        701  930 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:        不告诉你
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 [ms] (mean)
Time per request:       3.702 [ms] (mean, across all concurrent requests)
Transfer rate:          18477.55 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   4.0      0     101
Processing:     0  183 197.9    145    2693
Waiting:        0  134  90.7    128    1086
Total:          0  183 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:        不告诉你
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 [ms] (mean)
Time per request:       1.250 [ms] (mean, across all concurrent requests)
Transfer rate:          54774.50 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    2   6.2      1      55
Processing:     2   59  27.4     59     401
Waiting:        1   55  27.1     56     399
Total:          2   61  27.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/be ... php-and-plain-html/

另外还发布了 LiteSpeed + LxAdmin 共存安装的教程:http://thislab.com/2008/02/25/ho ... dmin-host-in-a-box/

发表于 2008-2-25 12:01:13 | 显示全部楼层
好帖子,顶~~
不过 LiteSpeed 好用吗?
发表于 2008-2-29 14:53:11 | 显示全部楼层
俺。。一窍不通。。。
发表于 2008-3-14 23:33:35 | 显示全部楼层
路过、回头、顶起!
主要是不能并排看,挺郁闷的,下次要生成图表就爽了

本版积分规则