httpd の1
とりあえず、接続したらヘッダを読み飛ばして
"HTTP/1.0 200 OK\r\nConnection: close\r\n\r\n<html><body><h1>hoge</h1></body></html>"
と返すだけのsocket サーバを作り、apache benchしてみた。スレッドプール方式で、まだ非同期I/Oは使っていない。
どうも、Cygwinだとapache benchも/usr/sbin/ab2 と微妙なパスにインストールされるようだ。
ローカル同士の接続で6rps。。moshは色々と排他処理が足りないところがあるのか、まだconcurrentではapache benchを完走できない。特に、ライブラリを伴うevalを複数スレッドから同時に呼ぶと死ぬことが多いのが難しい。
1スレッドでは非常に健全に動作する。
Server Software: Server Hostname: 127.0.0.1 Server Port: 80 Document Path: / Document Length: 39 bytes Concurrency Level: 1 Time taken for tests: 168.466000 seconds Complete requests: 1000 Failed requests: 0 Write errors: 0 Total transferred: 77000 bytes HTML transferred: 39000 bytes Requests per second: 5.94 [#/sec] (mean) Time per request: 168.466 [ms] (mean) Time per request: 168.466 [ms] (mean, across all concurrent requests) Transfer rate: 0.45 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 2.3 0 12 Processing: 152 167 6.4 166 248 Waiting: 152 167 6.4 166 248 Total: 161 168 6.2 167 248 Percentage of the requests served within a certain time (ms) 50% 167 66% 168 75% 170 80% 171 90% 174 95% 176 98% 189 99% 198 100% 248 (longest request)