アパッチベンチしてみた、小堤です。
とんでもない結果がでました。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# ab -c 10 -t 60 http://localhost/~kotsutsumiThis is ApacheBench, Version 2.0.41-dev <$Revision: 1.141 $> apache-2.0Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/ Benchmarking localhost (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 Finished 50000 requests Server Software: Apache Server Hostname: localhost Server Port: 80 Document Path: /~kotsutsumi Document Length: 237 bytes Concurrency Level: 10 Time taken for tests: 17.276930 seconds Complete requests: 50000 Failed requests: 0 Write errors: 0 Non-2xx responses: 50000 Total transferred: 22500000 bytes HTML transferred: 11850000 bytes Requests per second: 2894.03 [#/sec] (mean) Time per request: 3.455 [ms] (mean) Time per request: 0.346 [ms] (mean, across all concurrent requests) Transfer rate: 1271.75 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 0.9 0 51 Processing: 0 2 1.8 3 73 Waiting: 0 2 1.3 3 63 Total: 0 2 2.4 3 82 Percentage of the requests served within a certain time (ms) 50% 3 66% 3 75% 3 80% 3 90% 3 95% 4 98% 4 99% 4 100% 82 (longest request) |
- 1秒間に捌けるリクエスト数:2894リクエスト
- 1リクエスト当たり0.082秒
です。
これすごくない!?環境だってうちのサーバが化け物な分けでもないし。
http://phpspot.org/blog/archives/2007/01/php_68.html
みるかぎり
- ZendFramework:1秒間に捌けるリクエスト数:131.91
- CakePhp:1秒間に捌けるリクエスト数:114.39
・・・、ZendFramework今のバージョンしらないけど、22倍。
CakePHPより25倍・・・速い・・。これからアクションスタックを1個は走らせる前提で計測するので、もう少しXF(xFrameworkPX)は遅くなるけど・・でも・・・ね・・。
まだ途中だけどxFrameworkPX2.5 AbachBench!!