Concurrency Level: 100
Time taken for tests: 28.445 seconds
Complete requests: 3000000
Failed requests: 0
Keep-Alive requests: 3000000
Total transferred: 456000000 bytes
HTML transferred: 33000000 bytes
Requests per second: 105467.44 [#/sec] (mean)
Time per request: 0.948 [ms] (mean)
Time per request: 0.009 [ms] (mean, across all concurrent requests)
Transfer rate: 15655.32 [Kbytes/sec] received
package main
import (
"log"
"net/http"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("Hello world"))
})
if err := http.ListenAndServe(":8888", nil); err != nil {
log.Fatal("ListenAndServe: ", err)
}
}