"Go" HTTP Server performance test

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.