# ulimit -n 20480
# erlc ehttpd.erl
# erl +K true +h 99999 +P 99999 -s ehttpd
$ ab -n 10000 -c 100 http://localhost:8888/
Server Hostname: 127.0.0.1
Server Port: 8888
Document Path: /
Document Length: 12 bytes
Concurrency Level: 100
Time taken for tests: 1.382 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 511530 bytes
HTML transferred: 120360 bytes
Requests per second: 7234.19 [#/sec] (mean)
Time per request: 13.823 [ms] (mean)
Time per request: 0.138 [ms] (mean, across all concurrent requests)
Transfer rate: 361.38 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 5 1.2 5 10
Processing: 4 9 1.8 8 24
Waiting: 2 7 1.6 6 23
Total: 9 14 2.1 14 29
Percentage of the requests served within a certain time (ms)
50% 14
66% 14
75% 15
80% 15
90% 16
95% 17
98% 19
99% 20
100% 29 (longest request)
- Intel(R) Core(TM) i3 CPU M 330 @ 2.13GHz
- 2GB RAM
- Fedora 12
- Erlang R13B04 (erts-5.7.5)
- http://blog.yufeng.info/archives/105