Test: ab -k -c 100 -t 60 -n 10000000 http://xxxxxxxxx
(ApacheBench)
C Server:
hello.c:
#include <stdio.h>
int main(int argc, char *argv[])
{
puts("Hello World!\n");
return 0;
} Server Software: G-WAN
Server Hostname: localhost
Server Port: 8080
Document Path: /?hello.c
Document Length: 11 bytes
Concurrency Level: 100
Time taken for tests: 60.001 seconds
Complete requests: 4196999
Failed requests: 0
Write errors: 0
Keep-Alive requests: 4196999
Total transferred: 1200341714 bytes
HTML transferred: 46166989 bytes
Requests per second: 69948.71 [#/sec] (mean)
Time per request: 1.430 [ms] (mean)
Time per request: 0.014 [ms] (mean, across all concurrent requests)
Transfer rate: 19536.46 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 2
Processing: 0 1 0.3 1 10
Waiting: 0 1 0.3 1 10
Total: 0 1 0.3 1 10
Percentage of the requests served within a certain time (ms)
50% 1
66% 1
75% 1
80% 1
90% 1
95% 2
98% 2
99% 3
100% 10 (longest request) Go server:
hello.go
GOMAXPROCS=2 (2 CPU cores)
package main
import (
"fmt"
"net/http"
)
func handler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hi there, I love %s!", r.URL.Path[1:])
}
func main() {
http.HandleFunc("/", handler)
http.ListenAndServe(":8080", nil)
} Server Software:
Server Hostname: localhost
Server Port: 8080
Document Path: /
Document Length: 11 bytes
Concurrency Level: 100
Time taken for tests: 60.000 seconds
Complete requests: 602338
Failed requests: 0
Write errors: 0
Keep-Alive requests: 0
Total transferred: 65052504 bytes
HTML transferred: 6625718 bytes
Requests per second: 10038.96 [#/sec] (mean)
Time per request: 9.961 [ms] (mean)
Time per request: 0.100 [ms] (mean, across all concurrent requests)
Transfer rate: 1058.80 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 7
Processing: 3 10 1.5 10 24
Waiting: 1 10 1.5 9 24
Total: 5 10 1.5 10 24
Percentage of the requests served within a certain time (ms)
50% 10
66% 10
75% 11
80% 11
90% 12
95% 13
98% 14
99% 14
100% 24 (longest request)
Ta strona powstała 29.03.2012. Wizyt: 67.

