Node second Java a few streets! Pathon second node several street! Go second Pathon several streets!
Excellent AB test performance
Package Mainimport ("FMT" "html/template" "net/http")varIint; func main () {http. Handlefunc ("/", index); http. Listenandserve ("localhost:811", nil); }func Index (RW http. Responsewriter,req*http. Request) {i=i+1; Fmt. Println (i); T, _:= Template. Parsefiles ("index.html") T.execute (Rw,nil)}
c:\users>d:\desktop\ab.exe-n10000-c100 http://localhost:811/
This is apachebench, Version 2.3 < $Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus technology LTD, http://www.zeustech.net/
Licensed to the Apache software Foundation, http://www.apache.org/
Benchmarking localhost (Be patient)
Completed requests
Completed requests
Completed requests
Completed 4000 requests
Completed requests
Completed 6000 requests
Completed 7000 Requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests
Server Software:
Server Hostname:localhost
Server port:811
Document Path:/
Document length:1185 bytes
Concurrency level:100
Time taken for tests:12.368 seconds
Complete requests:10000
Failed requests:0
Write errors:0
Total transferred:13030000 bytes
HTML transferred:11850000 bytes
Requests per second:808.56 [#/sec] (mean)
Time per request:123.677 [MS] (mean)
Time per request:1.237 [MS] (mean, across all concurrent requests)
Transfer rate:1028.86 [Kbytes/sec] Received
Connection Times (MS)
Min MEAN[+/-SD] Median max
connect:0 0 0.5 0 37
Processing:1 123 29.6 115 347
Waiting:1 123 29.6 115 347
Total:2 123 29.6 115 347
Percentage of the requests served within a certain time (MS)
50% 115
66% 122
75% 127
80% 133
90% 153
95% 197
98% 222
99% 229
100% 347 (Longest request)
"Go" HTTP Server performance test