Zbr's days.

About :: TODO :: Blog :: RSS :: Old blog :: Projects :: GIT :: Gallery :: Notes

Mon, 16 Jan 2006

Kevent benchmarking. Step 1.


Groovy!

Static index.html on kevent based single-threaded handmade http server (using read()/send() for file) on Xeon 2.4 Ghz, 512 Mb RAM, HT enabled, 1Gb network:

httperf --client=0/1 --server=pcix --port=80 --uri=/ --send-buffer=4096 --recv-buffer=16384 --num-conns=10000 --num-calls=1
Maximum connect burst length: 1

Total: connections 10000 requests 10000 replies 10000 test-duration 5.684 s

Connection rate: 1759.4 conn/s (0.6 ms/conn, <=1 concurrent connections)
Connection time [ms]: min 0.2 avg 0.6 max 204.5 median 0.5 stddev 3.5
Connection time [ms]: connect 0.1
Connection length [replies/conn]: 1.000

Request rate: 1759.4 req/s (0.6 ms/req)
Request size [B]: 55.0

Reply rate [replies/s]: min 1810.8 avg 1810.8 max 1810.8 stddev 0.0 (1 samples)
Reply time [ms]: response 0.2 transfer 0.2
Reply size [B]: header 198.0 content 3931.0 footer 0.0 (total 4129.0)
Reply status: 1xx=0 2xx=0 3xx=0 4xx=10000 5xx=0

CPU time [s]: user 1.46 system 4.23 (user 25.6% system 74.4% total 100.0%)
Net I/O: 7188.6 KB/s (58.9*10^6 bps)

Errors: total 0 client-timo 0 socket-timo 0 connrefused 0 connreset 0
Errors: fd-unavail 0 addrunavail 0 ftab-full 0 other 0

Using sendfile():
Connection rate: 2586.5 conn/s (0.4 ms/conn, <=1 concurrent connections)

The same index.html on Apache/2.0.54 from FC4 (default config) on P4 3.00GHz, 512 Mb RAM, HT enabled, 1Gb network.
[s0mbre@uganda httperf-0.8]$ ./httperf --server kano --num-conns 10000
httperf --client=0/1 --server=kano --port=80 --uri=/ --send-buffer=4096 --recv-buffer=16384 --num-conns=10000 --num-calls=1
Maximum connect burst length: 1

Total: connections 10000 requests 10000 replies 10000 test-duration 7.947 s

Connection rate: 1258.4 conn/s (0.8 ms/conn, <=1 concurrent connections)
Connection time [ms]: min 0.2 avg 0.8 max 561.2 median 0.5 stddev 5.6
Connection time [ms]: connect 0.2
Connection length [replies/conn]: 1.000

Request rate: 1258.4 req/s (0.8 ms/req)
Request size [B]: 55.0

Reply rate [replies/s]: min 1348.2 avg 1348.2 max 1348.2 stddev 0.0 (1 samples)
Reply time [ms]: response 0.6 transfer 0.0
Reply size [B]: header 198.0 content 3931.0 footer 0.0 (total 4129.0)
Reply status: 1xx=0 2xx=0 3xx=0 4xx=10000 5xx=0

CPU time [s]: user 1.92 system 5.90 (user 24.2% system 74.3% total 98.4%)
Net I/O: 5141.7 KB/s (42.1*10^6 bps)

Errors: total 0 client-timo 0 socket-timo 0 connrefused 0 connreset 0
Errors: fd-unavail 0 addrunavail 0 ftab-full 0 other 0

:: Link / Comments ()