书接上回:
Blitz、smarty和php原生代码的运行效率对比在加入了xcache之后,smarty的性能提升了接近三倍,其他两个性能基本上无变化,可能是因为php文件有点太简单了……
- jf# ab -c 100 -t 90
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd,
Licensed to The Apache Software Foundation,
Benchmarking ict.sdcangyuan.com (be patient)
Completed 5000 requests
Completed 10000 requests
Completed 15000 requests
Completed 20000 requests
Completed 25000 requests
Completed 30000 requests
Completed 35000 requests
Completed 40000 requests
Completed 45000 requests
Completed 50000 requests
Finished 50000 requests
Server Software: nginx/1.2.1
Server Hostname: ict.sdcangyuan.com
Server Port: 80
Document Path: /test/smarty/demo/index.php
Document Length: 1806 bytes
Concurrency Level: 100
Time taken for tests: 82.291 seconds
Complete requests: 50000
Failed requests: 0
Write errors: 0
Total transferred: 98400000 bytes
HTML transferred: 90300000 bytes
Requests per second: 607.60 [#/sec] (mean)
Time per request: 164.581 [ms] (mean)
Time per request: 1.646 [ms] (mean, across all concurrent requests)
Transfer rate: 1167.73 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.4 0 23
Processing: 130 164 19.2 163 606
Waiting: 130 164 19.2 163 606
Total: 130 164 19.4 163 615
Percentage of the requests served within a certain time (ms)
50% 163
66% 164
75% 165
80% 166
90% 167
95% 169
98% 171
99% 185
100% 615 (longest request)
jf# ab -c 100 -t 90
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd,
Licensed to The Apache Software Foundation,
Benchmarking ict.sdcangyuan.com (be patient)
Completed 5000 requests
Completed 10000 requests
Completed 15000 requests
Completed 20000 requests
Completed 25000 requests
Completed 30000 requests
Completed 35000 requests
Completed 40000 requests
Completed 45000 requests
Completed 50000 requests
Finished 50000 requests
Server Software: nginx/1.2.1
Server Hostname: ict.sdcangyuan.com
Server Port: 80
Document Path: /test/blitz/test.php
Document Length: 1794 bytes
Concurrency Level: 100
Time taken for tests: 17.859 seconds
Complete requests: 50000
Failed requests: 0
Write errors: 0
Total transferred: 97800000 bytes
HTML transferred: 89700000 bytes
Requests per second: 2799.70 [#/sec] (mean)
Time per request: 35.718 [ms] (mean)
Time per request: 0.357 [ms] (mean, across all concurrent requests)
Transfer rate: 5347.87 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 1.2 1 31
Processing: 2 34 22.7 33 579
Waiting: 2 33 17.8 32 312
Total: 5 36 22.7 34 580
Percentage of the requests served within a certain time (ms)
50% 34
66% 37
75% 39
80% 39
90% 43
95% 51
98% 70
99% 102
100% 580 (longest request)
jf# ab -c 100 -t 90
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd,
Licensed to The Apache Software Foundation,
Benchmarking ict.sdcangyuan.com (be patient)
Completed 5000 requests
Completed 10000 requests
Completed 15000 requests
Completed 20000 requests
Completed 25000 requests
Completed 30000 requests
Completed 35000 requests
Completed 40000 requests
Completed 45000 requests
Completed 50000 requests
Finished 50000 requests
Server Software: nginx/1.2.1
Server Hostname: ict.sdcangyuan.com
Server Port: 80
Document Path: /test/test.php
Document Length: 1392 bytes
Concurrency Level: 100
Time taken for tests: 15.268 seconds
Complete requests: 50000
Failed requests: 0
Write errors: 0
Total transferred: 77707770 bytes
HTML transferred: 69606960 bytes
Requests per second: 3274.73 [#/sec] (mean)
Time per request: 30.537 [ms] (mean)
Time per request: 0.305 [ms] (mean, across all concurrent requests)
Transfer rate: 4970.16 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 6 3.9 6 29
Processing: 3 24 21.0 23 571
Waiting: 2 22 15.0 20 298
Total: 4 30 20.3 30 572
Percentage of the requests served within a certain time (ms)
50% 30
66% 31
75% 33
80% 33
90% 35
95% 38
98% 43
99% 60
100% 572 (longest request)
jf#
阅读(3859) | 评论(0) | 转发(0) |