Tuesday, May 22, 2007

Separated phases into functions

Ran after separating into functions:

~/apache2/bin$ ./apachectl start
~/apache2/bin$ ./ab -n 100000 -c 1000 localhost:8080/index.html
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Completed 10000 requests
Completed 20000 requests
Completed 30000 requests
Completed 40000 requests
Completed 50000 requests
Completed 60000 requests
Completed 70000 requests
Completed 80000 requests
Completed 90000 requests
Finished 100000 requests


Server Software: Apache/2.2.4
Server Hostname: localhost
Server Port: 8080

Document Path: /index.html
Document Length: 44 bytes

Concurrency Level: 1000
Time taken for tests: 18.781482 seconds
Complete requests: 100000
Failed requests: 0
Write errors: 0
Total transferred: 29300000 bytes
HTML transferred: 4400000 bytes
Requests per second: 5324.39 [#/sec] (mean)
Time per request: 187.815 [ms] (mean)
Time per request: 0.188 [ms] (mean, across all concurrent requests)
Transfer rate: 1523.47 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 36 480.8 1 9030
Processing: 0 62 502.0 27 12897
Waiting: 0 51 501.7 16 12868
Total: 1 98 805.2 30 18333

Percentage of the requests served within a certain time (ms)
50% 30
66% 40
75% 45
80% 48
90% 57
95% 64
98% 72
99% 964
100% 18333 (longest request)

No comments: