$ ab -c 10 -t 60 http://site.local/
Простое приложение на ZendMVC (PHP):
This is ApacheBench, Version 2.3 < $Revision: 655654 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking zt.local (be patient) Finished 4557 requests Server Software: Apache/2.2.11 Server Hostname: zt.local Server Port: 80 Document Path: / Document Length: 4 bytes Concurrency Level: 10 Time taken for tests: 60.013 seconds Complete requests: 4557 Failed requests: 0 Write errors: 0 Total transferred: 1846395 bytes HTML transferred: 18236 bytes Requests per second: 75.93 [#/sec] (mean) Time per request: 131.695 [ms] (mean) Time per request: 13.169 [ms] (mean, across all concurrent requests) Transfer rate: 30.05 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 3.4 0 118 Processing: 12 131 56.0 141 457 Waiting: 0 81 63.9 79 326 Total: 12 131 55.9 141 457 Percentage of the requests served within a certain time (ms) 50% 141 66% 157 75% 168 80% 175 90% 195 95% 211 98% 229 99% 241 100% 457 (longest request)
Простое приложение на SpringMVC (Java):
This is ApacheBench, Version 2.3 < $Revision: 655654 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking st.local (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 Finished 41724 requests Server Software: Apache-Coyote/1.1 Server Hostname: st.local Server Port: 8080 Document Path: / Document Length: 5 bytes Concurrency Level: 10 Time taken for tests: 60.002 seconds Complete requests: 41724 Failed requests: 0 Write errors: 0 Total transferred: 10974990 bytes HTML transferred: 208650 bytes Requests per second: 695.38 [#/sec] (mean) Time per request: 14.381 [ms] (mean) Time per request: 1.438 [ms] (mean, across all concurrent requests) Transfer rate: 178.62 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 6 3.3 6 42 Processing: 1 8 12.9 7 622 Waiting: 0 6 12.9 5 622 Total: 1 14 13.0 13 652 Percentage of the requests served within a certain time (ms) 50% 13 66% 13 75% 14 80% 15 90% 18 95% 21 98% 26 99% 32 100% 652 (longest request)
бред сумасшедшего.
аргумент :)
Однако, разрыв резко сокращается при подключении внешней обвязки, например, БД.
ну, вобщем-то, не все так однозначно. тут я описал тесты с применением субд: http://alexey.tokar.net.ua/2009/11/hibernate-vs-doctrine/