`
yidongkaifa
  • 浏览: 4064841 次
文章分类
社区版块
存档分类
最新评论

YII和qeephp 框架的性能对比

 
阅读更多

这几天在选择php框架,测试了国外的yii 和国内的qeephp的性能。

使用apache的ab做了简单的性能测试,yii测试的是demo里的phonebook程序,qeephp用的是快速入门的todo,结果发现yii比qee稍微快一些,不向网上说的那样比qeephp慢。

在自己机器上做的测试,仅供参考,本人不承担任何责任。测试过程如下:

C:/Documents and Settings/zxt>D:/APMServ5.2.0/Apache/bin/ab -c 100 -t 30 http:/
/localhost/yii/demos/phonebook/ >c:/testyii.txt
Finished 588 requests

This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)


Server Software: Apache/2.2.3
Server Hostname: localhost
Server Port: 80

Document Path: /yii/demos/phonebook/
Document Length: 4409 bytes

Concurrency Level: 100
Time taken for tests: 30.890625 seconds
Complete requests: 588
Failed requests: 0
Write errors: 0
Total transferred: 2757360 bytes
HTML transferred: 2596563 bytes
Requests per second: 19.03 [#/sec] (mean)
Time per request: 5253.508 [ms] (mean)
Time per request: 52.535 [ms] (mean, across all concurrent requests)
Transfer rate: 87.15 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 2.2 0 15
Processing: 125 4400 1637.0 4297 8171
Waiting: 125 4399 1637.1 4296 8171
Total: 125 4400 1636.9 4312 8171

Percentage of the requests served within a certain time (ms)
50% 4312
66% 5109
75% 5656
80% 6046
90% 6859
95% 7093
98% 7343
99% 7546
100% 8171 (longest request)

C:/Documents and Settings/zxt>D:/APMServ5.2.0/Apache/bin/ab -c 100 -t 30 http://
localhost/todo/public/index.php >c:/testqee.txt
Finished 562 requests

This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)


Server Software: Apache/2.2.3
Server Hostname: localhost
Server Port: 80

Document Path: /todo/public/index.php
Document Length: 2150 bytes

Concurrency Level: 100
Time taken for tests: 30.000 seconds
Complete requests: 562
Failed requests: 31
(Connect: 0, Length: 31, Exceptions: 0)
Write errors: 0
Total transferred: 1766807 bytes
HTML transferred: 1498878 bytes
Requests per second: 18.73 [#/sec] (mean)
Time per request: 5338.078 [ms] (mean)
Time per request: 53.381 [ms] (mean, across all concurrent requests)
Transfer rate: 57.50 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 2.1 0 15
Processing: 484 4856 2689.3 3953 14078
Waiting: 484 4751 2450.7 3953 12140
Total: 484 4856 2689.2 3953 14078

Percentage of the requests served within a certain time (ms)
50% 3953
66% 4343
75% 4828
80% 5890
90% 9562
95% 9875
98% 12171
99% 12343
100% 14078 (longest request)

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics