Skip to content

Instantly share code, notes, and snippets.

@rakyll
Last active October 3, 2019 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rakyll/e4befe23cacb31ad105dfbe254635cc9 to your computer and use it in GitHub Desktop.
Save rakyll/e4befe23cacb31ad105dfbe254635cc9 to your computer and use it in GitHub Desktop.
BenchmarkServeMux-8 17066 73096 ns/op 17280 B/op 360 allocs/op 0.000017759620741 g CO2/op
BenchmarkServeMux_SkipServe-8 31587 36864 ns/op 0 B/op 0 allocs/op 0.000008956586667 g CO2/op
BenchmarkClientServer-8 11899 108704 ns/op 4738 B/op 58 allocs/op 0.000026411045926 g CO2/op
BenchmarkClientServerParallel4-8 10000 158806 ns/op 9013 B/op 75 allocs/op 0.000038583976296 g CO2/op
BenchmarkServer-8 9694 114669 ns/op 2241 B/op 20 allocs/op 0.000027860320000 g CO2/op
BenchmarkClient-8 10318 108927 ns/op 3247 B/op 42 allocs/op 0.000026465226667 g CO2/op
BenchmarkServerFakeConnNoKeepAlive-8 64522 18643 ns/op 4659 B/op 50 allocs/op 0.000004529558519 g CO2/op
BenchmarkServerFakeConnWithKeepAlive-8 118477 10268 ns/op 2440 B/op 22 allocs/op 0.000002494743704 g CO2/op
BenchmarkServerFakeConnWithKeepAliveLite-8 165610 6966 ns/op 1300 B/op 12 allocs/op 0.000001692480000 g CO2/op
BenchmarkServerHandlerTypeLen-8 129654 8631 ns/op 2119 B/op 19 allocs/op 0.000002097013333 g CO2/op
BenchmarkServerHandlerNoLen-8 158386 8424 ns/op 2087 B/op 17 allocs/op 0.000002046720000 g CO2/op
BenchmarkServerHandlerNoType-8 136467 7860 ns/op 2087 B/op 18 allocs/op 0.000001909688889 g CO2/op
BenchmarkServerHandlerNoHeader-8 160214 6617 ns/op 1300 B/op 12 allocs/op 0.000001607685926 g CO2/op
BenchmarkServerHijack-8 55306 22083 ns/op 16106 B/op 48 allocs/op 0.000005365351111 g CO2/op
BenchmarkCloseNotifier-8 1906 1144659 ns/op 3363 B/op 50 allocs/op 0.000278109742222 g CO2/op
BenchmarkResponseStatusLine-8 60185998 18.2 ns/op 0 B/op 0 allocs/op
PASS
ok net/http 103.600s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment