cat hello.c
#include <stdio.h>
int main () {
printf("Content-Type: text/html\n\n");
printf("<h3>Hello, world !</h3>\n");
}
cat hello.php
<? echo "<h3>Hello, world!</h3>"; ?>
#>ab -n 100 -c 10
http://host/cgi-bin/hello
This is ApacheBench, Version 1.3d <$Revision: 1.73 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd,
http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation,
http://www.apache.org/
Benchmarking host (be patient).....done
Server Software: Apache/1.3.33
Server Hostname: host
Server Port: 80
Document Path: /cgi-bin/hello
Document Length: 24 bytes
Concurrency Level: 10
Time taken for tests: 0.189 seconds
Complete requests: 100
Failed requests: 0
Broken pipe errors: 0
Total transferred: 16968 bytes
HTML transferred: 2424 bytes
Requests per second: 529.10 [#/sec] (mean)
Time per request: 18.90 [ms] (mean)
Time per request: 1.89 [ms] (mean, across all concurrent requests)
Transfer rate: 89.78 [Kbytes/sec] received
Connnection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 6 17 3.8 17 28
Waiting: 5 17 3.8 17 28
Total: 6 17 3.8 17 28
Percentage of the requests served within a certain time (ms)
50% 17
66% 19
75% 20
80% 21
90% 23
95% 25
98% 27
99% 28
100% 28 (last request)
#>ab -n 100 -c 10
http://host/hello
This is ApacheBench, Version 1.3d <$Revision: 1.73 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd,
http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation,
http://www.apache.org/
Benchmarking host (be patient).....done
Server Software: Apache/1.3.33
Server Hostname: host
Server Port: 80
Document Path: /hello
Document Length: 22 bytes
Concurrency Level: 10
Time taken for tests: 0.062 seconds
Complete requests: 100
Failed requests: 0
Broken pipe errors: 0
Total transferred: 30100 bytes
HTML transferred: 2200 bytes
Requests per second: 1612.90 [#/sec] (mean)
Time per request: 6.20 [ms] (mean)
Time per request: 0.62 [ms] (mean, across all concurrent requests)
Transfer rate: 485.48 [Kbytes/sec] received
Connnection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 3 5 0.8 5 10
Waiting: 3 5 0.8 5 10
Total: 3 5 0.8 5 10
Percentage of the requests served within a certain time (ms)
50% 5
66% 6
75% 6
80% 6
90% 7
95% 7
98% 8
99% 8
100% 10 (last request)