実用上意味があろうが無かろうが関係なし! ApacheBenchの結果を競おう とりあえずレギュレーションは、HTTPdの設定変更は動作に必要な最低限だけで Apache1.3.27のtarボールに入っているindex.html.en(1456B)を使用 ab -c 10 -n 10000 http://localhost/index.html.en でお願いします [テンプレ] CPU : Mem : OS : HTTPd : チューニングした所 : スコア : 一言 : ちなみにWin用のApacheBenchはApache2.xのバイナリに同梱
2 :
CPU : Celeron300A Mem : 128MB OS : FreeBSD4.7-RELEASE-p9 HTTPd : Apache1.3.27 チューニングした所 : GCCの最適化オプションを変えただけ スコア : Concurrency Level: 10 Time taken for tests: 17.078 seconds Complete requests: 10000 Failed requests: 0 Broken pipe errors: 0 Total transferred: 17360000 bytes HTML transferred: 14560000 bytes Requests per second: 585.55 [#/sec] (mean) Time per request: 17.08 [ms] (mean) Time per request: 1.71 [ms] (mean, across all concurrent requests) Transfer rate: 1016.51 [Kbytes/sec] received 一言 : PukiWikiを入れてみたら重くて(゜д゜)マズー
>>7 なら、 CPU : Duron850MHz Mem : SDRAM 256MB OS : WinXP Home HTTPd : AN HTTPD 1.42h チューニングした所 : CGI SSI 動作表示をオフに(これで40→107になりますた) スコア : Concurrency Level: 10 Time taken for tests: 93.434352 seconds Complete requests: 10000 Failed requests: 0 Write errors: 0 Total transferred: 17220000 bytes HTML transferred: 14560000 bytes Requests per second: 107.03 [#/sec] (mean) Time per request: 93.434 [ms] (mean) Time per request: 9.343 [ms] (mean, across all concurrent requests) Transfer rate: 179.98 [Kbytes/sec] received 一言 : Win+ANHTTPDでも結構いけるもんだ
10 :
CPU : Intel PentiumV 777MHz Mem : 512MB OS : Redhat 7.2 HTTPd : Apache/1.3.27 (Unix) チューニングした所 : MaxSpareServers 20 MaxClients 1024 MinSpareServers 10 Concurrency Level: 10 Time taken for tests: 15.534 seconds Complete requests: 10000 Failed requests: 0 Broken pipe errors: 0 Total transferred: 19660000 bytes HTML transferred: 18500000 bytes Requests per second: 643.75 [#/sec] (mean) Time per request: 15.53 [ms] (mean) Time per request: 1.55 [ms] (mean, across all concurrent requests) Transfer rate: 1265.61 [Kbytes/sec] received Connnection Times (ms) min mean[+/-sd] median max Connect: 0 1 1.7 0 34 Processing: 1 14 52.7 8 793 Waiting: 0 13 52.7 7 793 Total: 1 15 52.6 10 793 10回計測したけどほとんどブレなし。ちなみに直前のServer-Status。 Apache Server Status for ***.***.*** Server Version: Apache Server Built: Dec 14 2002 20:54:33 -------------------------------------------------------------------------------- Current Time: Monday, 24-Mar-2003 22:27:37 JST Restart Time: Monday, 24-Mar-2003 06:42:55 JST Parent Server Generation: 9 Server uptime: 15 hours 44 minutes 42 seconds Total accesses: 37656 - Total Traffic: 2.4 GB CPU Usage: u3.07 s1.45 cu5.72 cs.41 - .0188% CPU load .664 requests/sec - 43.9 kB/second - 66.0 kB/request 7 requests currently being processed, 7 idle servers
11 :
CPU :68030 32MHz Mem :12MB OS :NetBSD1.6 HTTPd :apache1.3.27 チューニングした所 :不要モジュール(autoindex userdir status)を入れずに省メモリ化。しかし最適化は-O2 スコア : Concurrency Level: 10 Time taken for tests: 738.369 seconds Complete requests: 10000 Failed requests: 0 Broken pipe errors: 0 Total transferred: 17160000 bytes HTML transferred: 14560000 bytes Requests per second: 13.54 [#/sec] (mean) Time per request: 738.37 [ms] (mean) Time per request: 73.84 [ms] (mean, across all concurrent requests) Transfer rate: 23.24 [Kbytes/sec] received MinSpareServers 5 MaxSpareServers 10 StartServers 5 MaxClients 150 一言 :起動時にすでにswapしとる…
# ab -c 10 -n 10000 http://localhost/index.html としてみると Benchmarking localhost (be patient) socket: Protocol not supported (43) ってでるんですけど…なんでだろ? Server: Apache/2.0.44 (Unix) PHP/4.3.1 on FreeBSDです。
14 :
CPU :Xeon 2.4G DUAL Mem :1024M OS :Win2000Server Httpd:IIS-5.0 スコア Concurrency Level: 10 Time taken for tests: 4.187500 seconds Complete requests: 10000 Failed requests: 0 Write errors: 0 Total transferred: 17360000 bytes HTML transferred: 14560000 bytes Requests per second: 2388.06 [#/sec] (mean) Time per request: 4.188 [ms] (mean) Time per request: 0.419 [ms] (mean, across all concurrent requests) Transfer rate: 4048.48 [Kbytes/sec] received 家の化け物マシンです。
CPU : Intel Celeron 400MHz Mem : 128MB OS : Vine2.6r1 HTTPd : Apache/1.3.27 (Unix) チューニングした所 : なし スコア: Concurrency Level: 10 Time taken for tests: 21.469 seconds Complete requests: 10000 Failed requests: 0 Broken pipe errors: 0 Total transferred: 29871944 bytes HTML transferred: 26740692 bytes Requests per second: 465.79 [#/sec] (mean) Time per request: 21.47 [ms] (mean) Time per request: 2.15 [ms] (mean, across all concurrent requests) Transfer rate: 1391.40 [Kbytes/sec] received Connnection Times (ms) min mean[+/-sd] median max Connect: 0 5 3.0 5 78 Processing: 6 16 30.9 12 658 Waiting: 2 15 30.9 11 658 Total: 6 20 30.6 17 658 インスコ終わってそのまま測定。
21 :
CustomLogの行をコメントアウトしたらだいぶ速くなりますた MaxSpareServers MinSpareServers MaxClientsはいじっても変わりませんでした Concurrency Level: 10 Time taken for tests: 14.817 seconds Complete requests: 10000 Failed requests: 0 Broken pipe errors: 0 Total transferred: 17040000 bytes HTML transferred: 14560000 bytes Requests per second: 674.90 [#/sec] (mean) Time per request: 14.82 [ms] (mean) Time per request: 1.48 [ms] (mean, across all concurrent requests) Transfer rate: 1150.03 [Kbytes/sec] received
22 :
KEEP AIVE?
23 :
CPU :Mobile PentiumV 700MHz Mem : 192 MB OS : Win2k Pro HTTPd : Apache2.044 チューニングした所 : 特に無し スコア : Concurrency Level: 10 Time taken for tests: 79.33645 seconds Complete requests: 10000 Failed requests: 0 Write errors: 0 Total transferred: 17840000 bytes HTML transferred: 14940000 bytes Requests per second: 126.53 [#/sec] (mean) Time per request: 79.034 [ms] (mean) Time per request: 7.903 [ms] (mean, across all concurrent requests) Transfer rate: 220.43 [Kbytes/sec] received
24 :
>MaxSpareServers MinSpareServers MaxClientsはいじっても変わりませんでした だって ab -c 10 で同時接続数を制限してるから。
25 :
#!/bin/sh while read a; do test "$a" = "^M" && break test "$a" = "" && break done echo "HTTP/1.0 200 OK" echo "Content-Type: text/html" echo "" while read a; do echo "$a" done << EOF ...この間に index.html.en をベタ書き... EOF …という sh スクリプトを inetd から起動するようにして実験。 いちおうこれでも httpd として動く。
26 :
CPU : UltraSPARC IIe 500MHz Mem : 128MB OS : Solaris8 httpd: 上のレスの sh スクリプト その他常時いろんなプロセスが起動して慢性的にメモリ不足、CPU100%以上の状態(w Concurrency Level: 10 Time taken for tests: 304.172326 seconds Complete requests: 10000 Failed requests: 0 Write errors: 0 Total transferred: 14920000 bytes HTML transferred: 14510000 bytes Requests per second: 32.88 [#/sec] (mean) Time per request: 304.172 [ms] (mean) Time per request: 30.417 [ms] (mean, across all concurrent requests) Transfer rate: 47.90 [Kbytes/sec] received 激しく遅かった…。
27 :
上と同一マシン上で Apache/2.0.44 けっこうゴチャゴチャといじってある。 Concurrency Level: 10 Time taken for tests: 32.29751 seconds Complete requests: 10000 Failed requests: 0 Write errors: 0 Total transferred: 17370000 bytes HTML transferred: 14560000 bytes Requests per second: 312.21 [#/sec] (mean) Time per request: 32.030 [ms] (mean) Time per request: 3.203 [ms] (mean, across all concurrent requests) Transfer rate: 529.57 [Kbytes/sec] received
CPU : Celeron300A Mem : 128MB OS : Turbolinux7Server(Kernel2.4.18) HTTPd : kHTTPd 0.1.6 チューニングした所 : 特に無し Concurrency Level: 10 Time taken for tests: 5.441 seconds Complete requests: 10000 Failed requests: 0 Broken pipe errors: 0 Total transferred: 16270000 bytes HTML transferred: 14560000 bytes Requests per second: 1837.90 [#/sec] (mean) Time per request: 5.44 [ms] (mean) Time per request: 0.54 [ms] (mean, across all concurrent requests) Transfer rate: 2990.26 [Kbytes/sec] received 別のPCからだと2220.74 [#/sec]出ました TUX、Esehttpdも速いらしぃ
ベンチを取ろうとすると BAD file descriptorというエラーが出てきてコケます。 環境はFreeBSD 4.7 release、 Apache 1.3.27です。
33 :
CPU : pentium 120Mhz Mem : 46MB Document Path: /index.html.en Document Length: 1456 bytes Concurrency Level: 10 Time taken for tests: 107.593 seconds Complete requests: 10000 Failed requests: 0 Broken pipe errors: 0 Total transferred: 17110000 bytes HTML transferred: 14560000 bytes Requests per second: 92.94 [#/sec] (mean) Time per request: 107.59 [ms] (mean) Time per request: 10.76 [ms] (mean, across all concurrent requests) Transfer rate: 159.03 [Kbytes/sec] received Connnection Times (ms) min mean[+/-sd] median max Connect: 17 49 16.5 51 123 Processing: 30 57 17.0 59 132 Waiting: 21 49 16.8 50 122 Total: 103 106 6.6 105 165 Percentage of the requests served within a certain time (ms) 50% 105 66% 106 75% 106 80% 106 90% 107 95% 107 98% 146 99% 150 100% 165 (last request)
34 :
>>32 4.7ReleaseのGENERICカーネルでは同じ症状出たよ 今は問題ないけど cpu I686_CPU maxusers 256 options NMBCLUSTERS=8192 にして、いらないのを削ったくらいだけど何が問題だったのやら
CPU : Celeron1.7GHz Mem : 128MB OS : Redhat Linux 7.3 HTTPd : Apache/2.0.44 (Unix) PHP/4.3.1 チューニングした所 : 特に無し Concurrency Level: 10 Time taken for tests: 8.687821 seconds Complete requests: 10000 Failed requests: 0 Write errors: 0 Total transferred: 17590000 bytes HTML transferred: 14560000 bytes Requests per second: 1151.04 [#/sec] (mean) Time per request: 8.688 [ms] (mean) Time per request: 0.869 [ms] (mean, across all concurrent requests) Transfer rate: 1977.14 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 0.0 0 1 Processing: 1 8 7.0 8 489 Waiting: 0 3 7.4 3 489 Total: 1 8 7.0 8 489
CPU : Pentium III-S 1.13GHz Mem : PC133 SDRAM 512MB OS : Debian 3.0(woody) Linux Kernel 2.4.20 HTTPd : Apache1.3.26-0woody3 チューニングした所 : 不要モジュールの削除だけ スコア : Concurrency Level: 10 Time taken for tests: 10.318 seconds Complete requests: 10000 Failed requests: 0 Broken pipe errors: 0 Total transferred: 43870000 bytes HTML transferred: 41100000 bytes Requests per second: 969.18 [#/sec] (mean) Time per request: 10.32 [ms] (mean) Time per request: 1.03 [ms] (mean, across all concurrent requests) Transfer rate: 4251.79 [Kbytes/sec] received 一言 : もちょっと頑張ると RPS が 1000にいって嬉しい
40 :
>>39 >Requests per second: 969.18 [#/sec] (mean) と >Transfer rate: 4251.79 [Kbytes/sec] received って比例するんじゃなかったっけ? 1.5KBのファイルでの比較ならば、1.5倍近くの数字が出るはず。 話が外れるが、20KBや100KBのファイルでのテスト結果がみたいです。 それと、10コネだけじゃなく、100コネ、500コネ、1000コネ、でのテスト結果を出し合った方が面白い気がしますし、参考になります。 どうでしょうか?
CPU : Duron 850MHz Mem : 256MB OS : TurboLinux 7 Server HTTPd : khttpd 0.1.6 チューニングした所 : 特になし スコア : Server Software: kHTTPd/0.1.6 Server Hostname: localhost Server Port: 80 Document Path: /index.html Document Length: 1456 bytes Concurrency Level: 10 Time taken for tests: 1.694 seconds Complete requests: 10000 Failed requests: 0 Broken pipe errors: 0 Total transferred: 16270000 bytes HTML transferred: 14560000 bytes Requests per second: 5903.19 [#/sec] (mean) Time per request: 1.69 [ms] (mean) Time per request: 0.17 [ms] (mean, across all concurrent requests) Transfer rate: 9604.49 [Kbytes/sec] received 一言 : 成金マシンに勝ててうれしい
CPU : K6-2 333MHz Mem : 384MB OS : TurboLinux 7 WS チューニングした所 : 特になし スコア : Server Software: Apache/1.3.20 Server Hostname: localhost Server Port: 80 Document Path: /index.html.en Document Length: 2673 bytes Concurrency Level: 10 Time taken for tests: 31.416 seconds Complete requests: 10000 Failed requests: 0 Total transferred: 29797868 bytes HTML transferred: 26746038 bytes Requests per second: 318.31 Transfer rate: 948.49 kb/s received Connnection Times (ms) min avg max Connect: 0 7 42 Processing: 13 23 28 Total: 13 30 70
64 :
最近鯖変えたので、新鯖の結果載せます CPU : Pentium III (Coppermine) 551.259MHz Mem : 512MB OS : Redhat9 チューニングした所 : 特になし スコア : Server Software: Apache/2.0.40 Server Hostname: localhost Server Port: 80 Document Path: /index.html.en Document Length: 2673 bytes Concurrency Level: 10 Time taken for tests: 23.709009 seconds Complete requests: 10000 Failed requests: 0 Write errors: 0 Total transferred: 29520000 bytes HTML transferred: 26730000 bytes Requests per second: 421.78 [#/sec] (mean) Time per request: 23.709 [ms] (mean) Time per request: 2.371 [ms] (mean, across all concurrent requests) Transfer rate: 1215.91 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 0.3 0 32 Processing: 1 22 113.2 8 2397 Waiting: 0 19 93.6 6 1903 Total: 1 22 113.2 8 2397 体感速度に変化は無いです
CPU :Duron 700MHz Mem :256M OS :FreeBSD4.8R HTTPd :Apache1.3.27 チューニングした所 :なし スコア : Concurrency Level: 10 Time taken for tests: 29.791 seconds Complete requests: 10000 Failed requests: 0 Broken pipe errors: 0 Total transferred: 16439858 bytes HTML transferred: 14568736 bytes Requests per second: 335.67 [#/sec] (mean) Time per request: 29.79 [ms] (mean) Time per request: 2.98 [ms] (mean, across all concurrent requests) Transfer rate: 551.84 [Kbytes/sec] received
>>89 どうもありがとうございます。 EZGo+ CPU : Intel Celeron 1.1GHz Mem : 128MB OS : Redhat 7.3 HTTPd : Apache/1.3.28 (Unix) Concurrency Level: 10 Time taken for tests: 9.204 seconds Complete requests: 10000 Failed requests: 0 Broken pipe errors: 0 Total transferred: 17282089 bytes HTML transferred: 14570192 bytes Requests per second: 1086.48 [#/sec] (mean) Time per request: 9.20 [ms] (mean) Time per request: 0.92 [ms] (mean, across all concurrent requests) Transfer rate: 1877.67 [Kbytes/sec] received
91 :
>>90 メモリを256にしてtomcatとmm+SSL仕様にしてみた。 激しく重くなった。 EZGo+ CPU : Intel Celeron 1.1GHz Mem : 256MB OS : Redhat 7.3 HTTPd : Apache/1.3.28 (Unix) Concurrency Level: 10 Time taken for tests: 11.030 seconds Complete requests: 10000 Failed requests: 0 Broken pipe errors: 0 Non-2xx responses: 10008 Total transferred: 4543632 bytes HTML transferred: 2832264 bytes Requests per second: 906.62 [#/sec] (mean) Time per request: 11.03 [ms] (mean) Time per request: 1.10 [ms] (mean, across all concurrent requests) Transfer rate: 411.93 [Kbytes/sec] received
92 :
CPU : Intel Celeron 1.33GHz Mem : 512MB OS : WindowsXP HTTPd : Apache/1.3.28 (Win32) Concurrency Level: 10 Time taken for tests: 15.250000 seconds Complete requests: 10000 Failed requests: 0 Write errors: 0 Total transferred: 17840000 bytes HTML transferred: 14940000 bytes Requests per second: 655.74 [#/sec] (mean) Time per request: 15.250 [ms] (mean) Time per request: 1.525 [ms] (mean, across all concurrent requests) Transfer rate: 1142.36 [Kbytes/sec] received index.html.enは1.3.27の物
>>95 DOS窓からやったらできました。結果のせます。 CPU : AthlonXP +2500(定格) Mem : 1536M デュアルチャンネル OS : Windows2000 MBチップ nforce2 HTTPd : Apache/2.047(Win32) Documentlength 1494 Concurrency Level: 10 Time taken for tests: 9.453125seconds Complete requests: 10000 Failed requests: 0 Write errors: 0 Total transferred: 17840000 bytes HTML transferred: 14940000 bytes Requests per second: 1057.85[#/sec] (mean) Time per request: 9.453 [ms] (mean) Time per request: 0.945[ms] (mean, across all concurrent requests) Transfer rate: 1822.256 [Kbytes/sec] received これってどうなんですか? 初めてテストしたのでいいのか悪いのか分からないです