Вот что нашел
Benchmark your apache/php server.
There is this great program in apache called: ApacheBench! It's good for loading your server and seeing how fast it can process the requests. What it does is it requests a certain page many times. Now if the page is different you can't compare them. So I've decided to right a small php script that works with an array (no mysql stuff). This will pretty much test your CPU and maybe ram. Not things like your HDD (you'd want a large database test for that).
So here is what to do:
Download my script:
dalegroup.net/misc/apachebench.zip
Upzip to your apache root (try to keep everything as much the same as possible)
and run the following command (make sure it is from localhost so it doesn't turn into a network test).
ab -n 1000 -c 10 127.0.0.1/apachebench.php
(means 1000 requests, 10 concurrent users)
(ab is found in apache2in on a windows install, unsure where it is on linux).
Once you've run that output your results here. Please don't change the settings or you'll get a result that we can't compare (sure do your own tests too!)
Dalegroup Main Server (running DNS, MAIL, Win2k3, DHCP, Apache2 etc).
Pentium 4 2.4GHz, 512mb Ram.
quote:
Server Software: Apache/2.0.50
Server Hostname: 127.0.0.1
Server Port: 80
Document Path: /apachebench.php
Document Length: 408327 bytes
Concurrency Level: 10
Time taken for tests: 63.000 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 408513000 bytes
HTML transferred: 408327000 bytes
Requests per second: 15.87 [#/sec] (mean)
Time per request: 630.000 [ms] (mean)
Time per request: 63.000 [ms] (mean, across all concurrent requests)
Transfer rate: 6332.35 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 2.2 0 31
Processing: 234 626 46.2 625 968
Waiting: 15 373 248.8 562 671
Total: 234 626 46.3 625 968
Percentage of the requests served within a certain time (ms)
50% 625
66% 640
75% 640
80% 640
90% 640
95% 656
98% 703
99% 750
100% 968 (longest request)
And my development server (running Win2k, Apache2 nothing else running)
AlthonXP 2500+, 768mb Ram.
quote:
Server Software: Apache/2.0.50
Server Hostname: 127.0.0.1
Server Port: 80
Document Path: /apachebench.php
Document Length: 408327 bytes
Concurrency Level: 10
Time taken for tests: 43.171875 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 408513000 bytes
HTML transferred: 408327000 bytes
Requests per second: 23.16 [#/sec] (mean)
Time per request: 431.719 [ms] (mean)
Time per request: 43.172 [ms] (mean, across all concurrent requests)
Transfer rate: 9240.69 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 1.3 0 15
Processing: 46 428 23.9 437 453
Waiting: 0 388 23.8 390 406
Total: 46 429 23.9 437 453
Percentage of the requests served within a certain time (ms)
50% 437
66% 437
75% 437
80% 437
90% 437
95% 437
98% 437
99% 437
100% 453 (longest request)
I thought my P4 would have done a bit better. But it is running a lot more stuff. The dev box wasn't running anything else.
webhostingtalk.com/showthread.php?t=342820&highlight=server+benchmark
Здесь народ письками мерился
