Skip to content

Instantly share code, notes, and snippets.

@odeke-em
Created May 22, 2018 05:20
Show Gist options
  • Save odeke-em/3a6c95c4aa74d15619ab95728337e615 to your computer and use it in GitHub Desktop.
Save odeke-em/3a6c95c4aa74d15619ab95728337e615 to your computer and use it in GitHub Desktop.
BenchmarkClient-4 10000 134785 ns/op 3492 B/op 49 allocs/op
BenchmarkClient-4 10000 119346 ns/op 3490 B/op 49 allocs/op
BenchmarkClient-4 10000 126705 ns/op 3488 B/op 49 allocs/op
BenchmarkClient-4 10000 119080 ns/op 3488 B/op 49 allocs/op
BenchmarkClientServer-4 10000 106035 ns/op 4985 B/op 65 allocs/op
BenchmarkClientServer-4 10000 106615 ns/op 4983 B/op 65 allocs/op
BenchmarkClientServer-4 10000 106463 ns/op 4982 B/op 65 allocs/op
BenchmarkClientServer-4 10000 109390 ns/op 4983 B/op 65 allocs/op
BenchmarkClientServerParallel4-4 30000 76569 ns/op 7906 B/op 76 allocs/op
BenchmarkClientServerParallel4-4 30000 844355 ns/op 7979 B/op 78 allocs/op
BenchmarkClientServerParallel4-4 30000 579518 ns/op 7774 B/op 76 allocs/op
BenchmarkClientServerParallel4-4 30000 184921 ns/op 8047 B/op 76 allocs/op
BenchmarkClientServerParallel64-4 10000 129307 ns/op 4639 B/op 64 allocs/op
BenchmarkClientServerParallel64-4 10000 216282 ns/op 4401 B/op 63 allocs/op
BenchmarkClientServerParallel64-4 10000 182223 ns/op 4477 B/op 63 allocs/op
BenchmarkClientServerParallel64-4 10000 261376 ns/op 4532 B/op 63 allocs/op
BenchmarkClientServerParallelTLS4-4 10000 170106 ns/op 21997 B/op 226 allocs/op
BenchmarkClientServerParallelTLS4-4 10000 167940 ns/op 21933 B/op 225 allocs/op
BenchmarkClientServerParallelTLS4-4 10000 168168 ns/op 21379 B/op 221 allocs/op
BenchmarkClientServerParallelTLS4-4 10000 122619 ns/op 16179 B/op 171 allocs/op
BenchmarkClientServerParallelTLS64-4 50000 138768 ns/op 4879 B/op 68 allocs/op
BenchmarkClientServerParallelTLS64-4 50000 47263 ns/op 4899 B/op 68 allocs/op
BenchmarkClientServerParallelTLS64-4 50000 44675 ns/op 4870 B/op 67 allocs/op
BenchmarkClientServerParallelTLS64-4 50000 19092 ns/op 4489 B/op 64 allocs/op
BenchmarkCloseNotifier-4 10000 204441 ns/op 3313 B/op 50 allocs/op
BenchmarkCloseNotifier-4 10000 218952 ns/op 3310 B/op 50 allocs/op
BenchmarkCloseNotifier-4 10000 209137 ns/op 3309 B/op 50 allocs/op
BenchmarkCloseNotifier-4 10000 202324 ns/op 3308 B/op 50 allocs/op
BenchmarkCookieString-4 2000000 975 ns/op 360 B/op 5 allocs/op
BenchmarkCookieString-4 2000000 986 ns/op 360 B/op 5 allocs/op
BenchmarkCookieString-4 2000000 990 ns/op 360 B/op 5 allocs/op
BenchmarkCookieString-4 2000000 979 ns/op 360 B/op 5 allocs/op
BenchmarkHeaderWriteSubset-4 3000000 531 ns/op 0 B/op 0 allocs/op
BenchmarkHeaderWriteSubset-4 3000000 520 ns/op 0 B/op 0 allocs/op
BenchmarkHeaderWriteSubset-4 3000000 527 ns/op 0 B/op 0 allocs/op
BenchmarkHeaderWriteSubset-4 3000000 535 ns/op 0 B/op 0 allocs/op
BenchmarkReadCookies-4 300000 3682 ns/op 2008 B/op 16 allocs/op
BenchmarkReadCookies-4 300000 3680 ns/op 2008 B/op 16 allocs/op
BenchmarkReadCookies-4 300000 3672 ns/op 2008 B/op 16 allocs/op
BenchmarkReadCookies-4 300000 3742 ns/op 2008 B/op 16 allocs/op
BenchmarkReadRequestApachebench-4 1000000 1656 ns/op 49.51 MB/s 883 B/op 9 allocs/op
BenchmarkReadRequestApachebench-4 1000000 1642 ns/op 49.94 MB/s 883 B/op 9 allocs/op
BenchmarkReadRequestApachebench-4 1000000 1668 ns/op 49.16 MB/s 883 B/op 9 allocs/op
BenchmarkReadRequestApachebench-4 1000000 1654 ns/op 49.56 MB/s 883 B/op 9 allocs/op
BenchmarkReadRequestChrome-4 500000 2907 ns/op 210.15 MB/s 1456 B/op 14 allocs/op
BenchmarkReadRequestChrome-4 500000 2918 ns/op 209.36 MB/s 1456 B/op 14 allocs/op
BenchmarkReadRequestChrome-4 500000 2942 ns/op 207.67 MB/s 1456 B/op 14 allocs/op
BenchmarkReadRequestChrome-4 500000 2920 ns/op 209.20 MB/s 1456 B/op 14 allocs/op
BenchmarkReadRequestCurl-4 1000000 1643 ns/op 47.45 MB/s 880 B/op 9 allocs/op
BenchmarkReadRequestCurl-4 1000000 1658 ns/op 47.02 MB/s 880 B/op 9 allocs/op
BenchmarkReadRequestCurl-4 1000000 1660 ns/op 46.97 MB/s 880 B/op 9 allocs/op
BenchmarkReadRequestCurl-4 1000000 1643 ns/op 47.46 MB/s 880 B/op 9 allocs/op
BenchmarkReadRequestSiege-4 1000000 2116 ns/op 71.34 MB/s 965 B/op 11 allocs/op
BenchmarkReadRequestSiege-4 1000000 2124 ns/op 71.08 MB/s 965 B/op 11 allocs/op
BenchmarkReadRequestSiege-4 1000000 2127 ns/op 70.99 MB/s 965 B/op 11 allocs/op
BenchmarkReadRequestSiege-4 1000000 2135 ns/op 70.73 MB/s 965 B/op 11 allocs/op
BenchmarkReadRequestWrk-4 1000000 1169 ns/op 34.20 MB/s 832 B/op 7 allocs/op
BenchmarkReadRequestWrk-4 1000000 1180 ns/op 33.88 MB/s 832 B/op 7 allocs/op
BenchmarkReadRequestWrk-4 1000000 1158 ns/op 34.53 MB/s 832 B/op 7 allocs/op
BenchmarkReadRequestWrk-4 1000000 1161 ns/op 34.42 MB/s 832 B/op 7 allocs/op
BenchmarkReadSetCookies-4 500000 3302 ns/op 960 B/op 17 allocs/op
BenchmarkReadSetCookies-4 500000 3243 ns/op 960 B/op 17 allocs/op
BenchmarkReadSetCookies-4 500000 3328 ns/op 960 B/op 17 allocs/op
BenchmarkReadSetCookies-4 500000 3279 ns/op 960 B/op 17 allocs/op
BenchmarkResponseStatusLine-4 50000000 35.7 ns/op 0 B/op 0 allocs/op
BenchmarkResponseStatusLine-4 50000000 39.9 ns/op 0 B/op 0 allocs/op
BenchmarkResponseStatusLine-4 50000000 37.1 ns/op 0 B/op 0 allocs/op
BenchmarkResponseStatusLine-4 50000000 39.1 ns/op 0 B/op 0 allocs/op
BenchmarkServeMux-4 20000 91057 ns/op 19904 B/op 540 allocs/op
BenchmarkServeMux-4 20000 91679 ns/op 19904 B/op 540 allocs/op
BenchmarkServeMux-4 20000 90678 ns/op 19904 B/op 540 allocs/op
BenchmarkServeMux-4 20000 90668 ns/op 19904 B/op 540 allocs/op
BenchmarkServer-4 10000 130578 ns/op 2245 B/op 20 allocs/op
BenchmarkServer-4 10000 131006 ns/op 2241 B/op 20 allocs/op
BenchmarkServer-4 10000 130542 ns/op 2241 B/op 20 allocs/op
BenchmarkServer-4 10000 129964 ns/op 2240 B/op 20 allocs/op
BenchmarkServerFakeConnNoKeepAlive-4 100000 18843 ns/op 4586 B/op 49 allocs/op
BenchmarkServerFakeConnNoKeepAlive-4 100000 18771 ns/op 4587 B/op 49 allocs/op
BenchmarkServerFakeConnNoKeepAlive-4 100000 18909 ns/op 4586 B/op 49 allocs/op
BenchmarkServerFakeConnNoKeepAlive-4 100000 18768 ns/op 4586 B/op 49 allocs/op
BenchmarkServerFakeConnWithKeepAlive-4 100000 10623 ns/op 2438 B/op 22 allocs/op
BenchmarkServerFakeConnWithKeepAlive-4 100000 9028 ns/op 2438 B/op 22 allocs/op
BenchmarkServerFakeConnWithKeepAlive-4 100000 10708 ns/op 2438 B/op 22 allocs/op
BenchmarkServerFakeConnWithKeepAlive-4 100000 10700 ns/op 2438 B/op 22 allocs/op
BenchmarkServerFakeConnWithKeepAliveLite-4 200000 6792 ns/op 1299 B/op 12 allocs/op
BenchmarkServerFakeConnWithKeepAliveLite-4 200000 6873 ns/op 1299 B/op 12 allocs/op
BenchmarkServerFakeConnWithKeepAliveLite-4 200000 6841 ns/op 1299 B/op 12 allocs/op
BenchmarkServerFakeConnWithKeepAliveLite-4 200000 6831 ns/op 1299 B/op 12 allocs/op
BenchmarkServerHandlerNoHeader-4 200000 6490 ns/op 1299 B/op 12 allocs/op
BenchmarkServerHandlerNoHeader-4 200000 6669 ns/op 1299 B/op 12 allocs/op
BenchmarkServerHandlerNoHeader-4 200000 6625 ns/op 1299 B/op 12 allocs/op
BenchmarkServerHandlerNoHeader-4 200000 6622 ns/op 1299 B/op 12 allocs/op
BenchmarkServerHandlerNoLen-4 200000 7504 ns/op 2085 B/op 17 allocs/op
BenchmarkServerHandlerNoLen-4 200000 7630 ns/op 2085 B/op 17 allocs/op
BenchmarkServerHandlerNoLen-4 200000 7607 ns/op 2085 B/op 17 allocs/op
BenchmarkServerHandlerNoLen-4 200000 7580 ns/op 2085 B/op 17 allocs/op
BenchmarkServerHandlerNoType-4 200000 7796 ns/op 2085 B/op 18 allocs/op
BenchmarkServerHandlerNoType-4 200000 7792 ns/op 2085 B/op 18 allocs/op
BenchmarkServerHandlerNoType-4 200000 7912 ns/op 2085 B/op 18 allocs/op
BenchmarkServerHandlerNoType-4 200000 7795 ns/op 2085 B/op 18 allocs/op
BenchmarkServerHandlerTypeLen-4 200000 8036 ns/op 2117 B/op 20 allocs/op
BenchmarkServerHandlerTypeLen-4 200000 8276 ns/op 2117 B/op 20 allocs/op
BenchmarkServerHandlerTypeLen-4 200000 8156 ns/op 2117 B/op 20 allocs/op
BenchmarkServerHandlerTypeLen-4 200000 8198 ns/op 2117 B/op 20 allocs/op
BenchmarkServerHijack-4 100000 20357 ns/op 16031 B/op 47 allocs/op
BenchmarkServerHijack-4 100000 20554 ns/op 16030 B/op 47 allocs/op
BenchmarkServerHijack-4 100000 20672 ns/op 16031 B/op 47 allocs/op
BenchmarkServerHijack-4 100000 20545 ns/op 16031 B/op 47 allocs/op
BenchmarkClient-4 10000 132732 ns/op 3491 B/op 49 allocs/op
BenchmarkClient-4 10000 135098 ns/op 3487 B/op 49 allocs/op
BenchmarkClient-4 10000 129166 ns/op 3489 B/op 49 allocs/op
BenchmarkClient-4 10000 123803 ns/op 3491 B/op 49 allocs/op
BenchmarkClientServer-4 10000 102537 ns/op 4985 B/op 65 allocs/op
BenchmarkClientServer-4 10000 102055 ns/op 4984 B/op 65 allocs/op
BenchmarkClientServer-4 10000 101890 ns/op 4984 B/op 65 allocs/op
BenchmarkClientServer-4 10000 111404 ns/op 4983 B/op 65 allocs/op
BenchmarkClientServerParallel4-4 30000 74253 ns/op 8016 B/op 77 allocs/op
BenchmarkClientServerParallel4-4 10000 213130 ns/op 8200 B/op 78 allocs/op
BenchmarkClientServerParallel4-4 5000 290821 ns/op 8118 B/op 77 allocs/op
BenchmarkClientServerParallel4-4 5000 4472586 ns/op 7330 B/op 86 allocs/op
BenchmarkClientServerParallel64-4 20000 68171 ns/op 4754 B/op 65 allocs/op
BenchmarkClientServerParallel64-4 10000 237147 ns/op 4844 B/op 66 allocs/op
BenchmarkClientServerParallel64-4 30000 45510 ns/op 4102 B/op 61 allocs/op
BenchmarkClientServerParallel64-4 10000 237198 ns/op 4953 B/op 66 allocs/op
BenchmarkClientServerParallelTLS4-4 20000 200343 ns/op 21555 B/op 228 allocs/op
BenchmarkClientServerParallelTLS4-4 10000 166949 ns/op 18373 B/op 197 allocs/op
BenchmarkClientServerParallelTLS4-4 10000 117900 ns/op 13172 B/op 146 allocs/op
BenchmarkClientServerParallelTLS4-4 10000 187729 ns/op 20232 B/op 215 allocs/op
BenchmarkClientServerParallelTLS64-4 20000 70736 ns/op 5523 B/op 74 allocs/op
BenchmarkClientServerParallelTLS64-4 50000 43079 ns/op 4624 B/op 66 allocs/op
BenchmarkClientServerParallelTLS64-4 50000 44280 ns/op 4668 B/op 67 allocs/op
BenchmarkClientServerParallelTLS64-4 30000 77450 ns/op 5100 B/op 70 allocs/op
BenchmarkCloseNotifier-4 10000 186783 ns/op 3314 B/op 54 allocs/op
BenchmarkCloseNotifier-4 5000 214948 ns/op 3308 B/op 54 allocs/op
BenchmarkCloseNotifier-4 5000 237429 ns/op 3324 B/op 54 allocs/op
BenchmarkCloseNotifier-4 5000 242385 ns/op 3320 B/op 54 allocs/op
BenchmarkCookieString-4 2000000 956 ns/op 384 B/op 3 allocs/op
BenchmarkCookieString-4 2000000 951 ns/op 384 B/op 3 allocs/op
BenchmarkCookieString-4 2000000 953 ns/op 384 B/op 3 allocs/op
BenchmarkCookieString-4 2000000 944 ns/op 384 B/op 3 allocs/op
BenchmarkHeaderWriteSubset-4 3000000 558 ns/op 0 B/op 0 allocs/op
BenchmarkHeaderWriteSubset-4 3000000 555 ns/op 0 B/op 0 allocs/op
BenchmarkHeaderWriteSubset-4 3000000 566 ns/op 0 B/op 0 allocs/op
BenchmarkHeaderWriteSubset-4 3000000 552 ns/op 0 B/op 0 allocs/op
BenchmarkReadCookies-4 300000 3587 ns/op 2008 B/op 16 allocs/op
BenchmarkReadCookies-4 500000 3595 ns/op 2008 B/op 16 allocs/op
BenchmarkReadCookies-4 500000 3623 ns/op 2008 B/op 16 allocs/op
BenchmarkReadCookies-4 500000 3640 ns/op 2008 B/op 16 allocs/op
BenchmarkReadRequestApachebench-4 1000000 1634 ns/op 50.16 MB/s 883 B/op 9 allocs/op
BenchmarkReadRequestApachebench-4 1000000 1636 ns/op 50.11 MB/s 883 B/op 9 allocs/op
BenchmarkReadRequestApachebench-4 1000000 1640 ns/op 49.99 MB/s 883 B/op 9 allocs/op
BenchmarkReadRequestApachebench-4 1000000 1621 ns/op 50.58 MB/s 883 B/op 9 allocs/op
BenchmarkReadRequestChrome-4 500000 2940 ns/op 207.77 MB/s 1456 B/op 14 allocs/op
BenchmarkReadRequestChrome-4 500000 2917 ns/op 209.41 MB/s 1456 B/op 14 allocs/op
BenchmarkReadRequestChrome-4 500000 2970 ns/op 205.72 MB/s 1456 B/op 14 allocs/op
BenchmarkReadRequestChrome-4 500000 2973 ns/op 205.46 MB/s 1456 B/op 14 allocs/op
BenchmarkReadRequestCurl-4 1000000 1622 ns/op 48.08 MB/s 880 B/op 9 allocs/op
BenchmarkReadRequestCurl-4 1000000 1625 ns/op 47.97 MB/s 880 B/op 9 allocs/op
BenchmarkReadRequestCurl-4 1000000 1622 ns/op 48.07 MB/s 880 B/op 9 allocs/op
BenchmarkReadRequestCurl-4 1000000 1616 ns/op 48.26 MB/s 880 B/op 9 allocs/op
BenchmarkReadRequestSiege-4 1000000 2118 ns/op 71.28 MB/s 965 B/op 11 allocs/op
BenchmarkReadRequestSiege-4 1000000 2081 ns/op 72.54 MB/s 965 B/op 11 allocs/op
BenchmarkReadRequestSiege-4 1000000 2129 ns/op 70.90 MB/s 965 B/op 11 allocs/op
BenchmarkReadRequestSiege-4 1000000 2105 ns/op 71.73 MB/s 965 B/op 11 allocs/op
BenchmarkReadRequestWrk-4 1000000 1155 ns/op 34.61 MB/s 832 B/op 7 allocs/op
BenchmarkReadRequestWrk-4 1000000 1134 ns/op 35.26 MB/s 832 B/op 7 allocs/op
BenchmarkReadRequestWrk-4 1000000 1146 ns/op 34.90 MB/s 832 B/op 7 allocs/op
BenchmarkReadRequestWrk-4 1000000 1130 ns/op 35.37 MB/s 832 B/op 7 allocs/op
BenchmarkReadSetCookies-4 500000 3279 ns/op 960 B/op 17 allocs/op
BenchmarkReadSetCookies-4 500000 3250 ns/op 960 B/op 17 allocs/op
BenchmarkReadSetCookies-4 500000 3230 ns/op 960 B/op 17 allocs/op
BenchmarkReadSetCookies-4 500000 3200 ns/op 960 B/op 17 allocs/op
BenchmarkResponseStatusLine-4 50000000 35.7 ns/op 0 B/op 0 allocs/op
BenchmarkResponseStatusLine-4 50000000 34.4 ns/op 0 B/op 0 allocs/op
BenchmarkResponseStatusLine-4 50000000 34.5 ns/op 0 B/op 0 allocs/op
BenchmarkResponseStatusLine-4 30000000 35.8 ns/op 0 B/op 0 allocs/op
BenchmarkServeMux-4 20000 77540 ns/op 19904 B/op 540 allocs/op
BenchmarkServeMux-4 20000 77894 ns/op 19904 B/op 540 allocs/op
BenchmarkServeMux-4 20000 79742 ns/op 19904 B/op 540 allocs/op
BenchmarkServeMux-4 20000 80410 ns/op 19904 B/op 540 allocs/op
BenchmarkServer-4 10000 133002 ns/op 2244 B/op 20 allocs/op
BenchmarkServer-4 20000 131075 ns/op 2238 B/op 20 allocs/op
BenchmarkServer-4 10000 132367 ns/op 2240 B/op 20 allocs/op
BenchmarkServer-4 10000 127008 ns/op 2240 B/op 20 allocs/op
BenchmarkServerFakeConnNoKeepAlive-4 100000 19064 ns/op 4638 B/op 48 allocs/op
BenchmarkServerFakeConnNoKeepAlive-4 100000 19063 ns/op 4637 B/op 48 allocs/op
BenchmarkServerFakeConnNoKeepAlive-4 100000 18736 ns/op 4637 B/op 48 allocs/op
BenchmarkServerFakeConnNoKeepAlive-4 100000 18847 ns/op 4636 B/op 48 allocs/op
BenchmarkServerFakeConnWithKeepAlive-4 100000 10958 ns/op 2438 B/op 22 allocs/op
BenchmarkServerFakeConnWithKeepAlive-4 200000 10260 ns/op 2438 B/op 22 allocs/op
BenchmarkServerFakeConnWithKeepAlive-4 200000 10855 ns/op 2438 B/op 22 allocs/op
BenchmarkServerFakeConnWithKeepAlive-4 200000 10942 ns/op 2438 B/op 22 allocs/op
BenchmarkServerFakeConnWithKeepAliveLite-4 200000 6825 ns/op 1299 B/op 12 allocs/op
BenchmarkServerFakeConnWithKeepAliveLite-4 200000 6827 ns/op 1299 B/op 12 allocs/op
BenchmarkServerFakeConnWithKeepAliveLite-4 200000 6984 ns/op 1299 B/op 12 allocs/op
BenchmarkServerFakeConnWithKeepAliveLite-4 200000 6827 ns/op 1299 B/op 12 allocs/op
BenchmarkServerHandlerNoHeader-4 200000 6463 ns/op 1299 B/op 12 allocs/op
BenchmarkServerHandlerNoHeader-4 200000 6598 ns/op 1299 B/op 12 allocs/op
BenchmarkServerHandlerNoHeader-4 200000 6411 ns/op 1299 B/op 12 allocs/op
BenchmarkServerHandlerNoHeader-4 200000 6395 ns/op 1299 B/op 12 allocs/op
BenchmarkServerHandlerNoLen-4 200000 8066 ns/op 2085 B/op 17 allocs/op
BenchmarkServerHandlerNoLen-4 200000 7700 ns/op 2085 B/op 17 allocs/op
BenchmarkServerHandlerNoLen-4 200000 7617 ns/op 2085 B/op 17 allocs/op
BenchmarkServerHandlerNoLen-4 200000 7634 ns/op 2085 B/op 17 allocs/op
BenchmarkServerHandlerNoType-4 200000 7913 ns/op 2085 B/op 18 allocs/op
BenchmarkServerHandlerNoType-4 200000 7813 ns/op 2085 B/op 18 allocs/op
BenchmarkServerHandlerNoType-4 200000 7834 ns/op 2085 B/op 18 allocs/op
BenchmarkServerHandlerNoType-4 200000 7847 ns/op 2085 B/op 18 allocs/op
BenchmarkServerHandlerTypeLen-4 200000 8198 ns/op 2117 B/op 20 allocs/op
BenchmarkServerHandlerTypeLen-4 200000 8439 ns/op 2117 B/op 20 allocs/op
BenchmarkServerHandlerTypeLen-4 200000 8405 ns/op 2117 B/op 20 allocs/op
BenchmarkServerHandlerTypeLen-4 200000 8340 ns/op 2117 B/op 20 allocs/op
BenchmarkServerHijack-4 100000 20322 ns/op 16081 B/op 46 allocs/op
BenchmarkServerHijack-4 100000 20283 ns/op 16079 B/op 46 allocs/op
BenchmarkServerHijack-4 100000 20199 ns/op 16078 B/op 46 allocs/op
BenchmarkServerHijack-4 100000 20339 ns/op 16081 B/op 46 allocs/op
$ benchstat benchmarks-go1.10.txt benchmarks-go-devel-87a18c6.txt
name                               old time/op    new time/op    delta
Client-4                              130µs ± 5%     125µs ± 8%     ~             (p=0.343 n=4+4)
ClientServer-4                        104µs ± 7%     107µs ± 2%     ~             (p=0.343 n=4+4)
ClientServerParallel4-4             1.26ms ±254%   0.42ms ±100%     ~             (p=1.000 n=4+4)
ClientServerParallel64-4              147µs ±69%     197µs ±34%     ~             (p=0.686 n=4+4)
ClientServerParallelTLS4-4            168µs ±30%     157µs ±22%     ~             (p=0.886 n=4+4)
ClientServerParallelTLS64-4          58.9µs ±32%   62.4µs ±122%     ~             (p=1.000 n=4+4)
CloseNotifier-4                       220µs ±15%     209µs ± 5%     ~             (p=0.486 n=4+4)
CookieString-4                        951ns ± 1%     982ns ± 1%   +3.31%          (p=0.029 n=4+4)
HeaderWriteSubset-4                   558ns ± 1%     528ns ± 2%   -5.29%          (p=0.029 n=4+4)
ReadCookies-4                        3.61µs ± 1%    3.69µs ± 1%   +2.29%          (p=0.029 n=4+4)
ReadRequestApachebench-4             1.63µs ± 1%    1.66µs ± 1%   +1.36%          (p=0.029 n=4+4)
ReadRequestChrome-4                  2.95µs ± 1%    2.92µs ± 1%     ~             (p=0.343 n=4+4)
ReadRequestCurl-4                    1.62µs ± 0%    1.65µs ± 1%   +1.84%          (p=0.029 n=4+4)
ReadRequestSiege-4                   2.11µs ± 1%    2.13µs ± 0%     ~             (p=0.343 n=4+4)
ReadRequestWrk-4                     1.14µs ± 1%    1.17µs ± 1%   +2.26%          (p=0.029 n=4+4)
ReadSetCookies-4                     3.24µs ± 1%    3.29µs ± 1%     ~             (p=0.143 n=4+4)
ResponseStatusLine-4                 35.1ns ± 2%    37.9ns ± 6%     ~             (p=0.086 n=4+4)
ServeMux-4                           78.9µs ± 2%    91.0µs ± 1%  +15.37%          (p=0.029 n=4+4)
Server-4                              131µs ± 3%     131µs ± 0%     ~             (p=0.343 n=4+4)
ServerFakeConnNoKeepAlive-4          18.9µs ± 1%    18.8µs ± 0%     ~             (p=0.486 n=4+4)
ServerFakeConnWithKeepAlive-4        10.8µs ± 5%    10.3µs ±12%     ~             (p=0.200 n=4+4)
ServerFakeConnWithKeepAliveLite-4    6.87µs ± 2%    6.83µs ± 1%     ~             (p=0.800 n=4+4)
ServerHandlerNoHeader-4              6.47µs ± 2%    6.60µs ± 2%     ~             (p=0.057 n=4+4)
ServerHandlerNoLen-4                 7.75µs ± 4%    7.58µs ± 1%     ~             (p=0.057 n=4+4)
ServerHandlerNoType-4                7.85µs ± 1%    7.82µs ± 1%     ~             (p=0.200 n=4+4)
ServerHandlerTypeLen-4               8.35µs ± 2%    8.17µs ± 2%     ~             (p=0.086 n=4+4)
ServerHijack-4                       20.3µs ± 0%    20.5µs ± 1%   +1.21%          (p=0.029 n=4+4)

name                               old alloc/op   new alloc/op   delta
Client-4                             3.49kB ± 0%    3.49kB ± 0%     ~             (p=1.000 n=4+4)
ClientServer-4                       4.98kB ± 0%    4.98kB ± 0%     ~             (p=0.429 n=4+4)
ClientServerParallel4-4              7.92kB ± 7%    7.93kB ± 2%     ~             (p=0.486 n=4+4)
ClientServerParallel64-4             4.66kB ±12%    4.51kB ± 3%     ~             (p=0.343 n=4+4)
ClientServerParallelTLS4-4           18.3kB ±28%    20.4kB ±21%     ~             (p=0.343 n=4+4)
ClientServerParallelTLS64-4          4.98kB ±11%    4.78kB ± 6%     ~             (p=0.686 n=4+4)
CloseNotifier-4                      3.32kB ± 0%    3.31kB ± 0%     ~             (p=0.229 n=4+4)
CookieString-4                         384B ± 0%      360B ± 0%   -6.25%          (p=0.029 n=4+4)
HeaderWriteSubset-4                  0.00B ±NaN%    0.00B ±NaN%     ~     (all samples are equal)
ReadCookies-4                        2.01kB ± 0%    2.01kB ± 0%     ~     (all samples are equal)
ReadRequestApachebench-4               883B ± 0%      883B ± 0%     ~     (all samples are equal)
ReadRequestChrome-4                  1.46kB ± 0%    1.46kB ± 0%     ~     (all samples are equal)
ReadRequestCurl-4                      880B ± 0%      880B ± 0%     ~     (all samples are equal)
ReadRequestSiege-4                     965B ± 0%      965B ± 0%     ~     (all samples are equal)
ReadRequestWrk-4                       832B ± 0%      832B ± 0%     ~     (all samples are equal)
ReadSetCookies-4                       960B ± 0%      960B ± 0%     ~     (all samples are equal)
ResponseStatusLine-4                 0.00B ±NaN%    0.00B ±NaN%     ~     (all samples are equal)
ServeMux-4                           19.9kB ± 0%    19.9kB ± 0%     ~     (all samples are equal)
Server-4                             2.24kB ± 0%    2.24kB ± 0%     ~             (p=0.286 n=4+4)
ServerFakeConnNoKeepAlive-4          4.64kB ± 0%    4.59kB ± 0%   -1.09%          (p=0.029 n=4+4)
ServerFakeConnWithKeepAlive-4        2.44kB ± 0%    2.44kB ± 0%     ~     (all samples are equal)
ServerFakeConnWithKeepAliveLite-4    1.30kB ± 0%    1.30kB ± 0%     ~     (all samples are equal)
ServerHandlerNoHeader-4              1.30kB ± 0%    1.30kB ± 0%     ~     (all samples are equal)
ServerHandlerNoLen-4                 2.08kB ± 0%    2.08kB ± 0%     ~     (all samples are equal)
ServerHandlerNoType-4                2.08kB ± 0%    2.08kB ± 0%     ~     (all samples are equal)
ServerHandlerTypeLen-4               2.12kB ± 0%    2.12kB ± 0%     ~     (all samples are equal)
ServerHijack-4                       16.1kB ± 0%    16.0kB ± 0%   -0.30%          (p=0.029 n=4+4)

name                               old allocs/op  new allocs/op  delta
Client-4                               49.0 ± 0%      49.0 ± 0%     ~     (all samples are equal)
ClientServer-4                         65.0 ± 0%      65.0 ± 0%     ~     (all samples are equal)
ClientServerParallel4-4                79.5 ± 8%      76.5 ± 2%     ~             (p=0.114 n=4+4)
ClientServerParallel64-4               64.5 ± 5%      63.2 ± 1%     ~             (p=0.229 n=4+4)
ClientServerParallelTLS4-4              196 ±26%       211 ±19%     ~             (p=0.686 n=4+4)
ClientServerParallelTLS64-4            69.2 ± 7%      66.8 ± 4%     ~             (p=0.543 n=4+4)
CloseNotifier-4                        54.0 ± 0%      50.0 ± 0%   -7.41%          (p=0.029 n=4+4)
CookieString-4                         3.00 ± 0%      5.00 ± 0%  +66.67%          (p=0.029 n=4+4)
HeaderWriteSubset-4                   0.00 ±NaN%     0.00 ±NaN%     ~     (all samples are equal)
ReadCookies-4                          16.0 ± 0%      16.0 ± 0%     ~     (all samples are equal)
ReadRequestApachebench-4               9.00 ± 0%      9.00 ± 0%     ~     (all samples are equal)
ReadRequestChrome-4                    14.0 ± 0%      14.0 ± 0%     ~     (all samples are equal)
ReadRequestCurl-4                      9.00 ± 0%      9.00 ± 0%     ~     (all samples are equal)
ReadRequestSiege-4                     11.0 ± 0%      11.0 ± 0%     ~     (all samples are equal)
ReadRequestWrk-4                       7.00 ± 0%      7.00 ± 0%     ~     (all samples are equal)
ReadSetCookies-4                       17.0 ± 0%      17.0 ± 0%     ~     (all samples are equal)
ResponseStatusLine-4                  0.00 ±NaN%     0.00 ±NaN%     ~     (all samples are equal)
ServeMux-4                              540 ± 0%       540 ± 0%     ~     (all samples are equal)
Server-4                               20.0 ± 0%      20.0 ± 0%     ~     (all samples are equal)
ServerFakeConnNoKeepAlive-4            48.0 ± 0%      49.0 ± 0%   +2.08%          (p=0.029 n=4+4)
ServerFakeConnWithKeepAlive-4          22.0 ± 0%      22.0 ± 0%     ~     (all samples are equal)
ServerFakeConnWithKeepAliveLite-4      12.0 ± 0%      12.0 ± 0%     ~     (all samples are equal)
ServerHandlerNoHeader-4                12.0 ± 0%      12.0 ± 0%     ~     (all samples are equal)
ServerHandlerNoLen-4                   17.0 ± 0%      17.0 ± 0%     ~     (all samples are equal)
ServerHandlerNoType-4                  18.0 ± 0%      18.0 ± 0%     ~     (all samples are equal)
ServerHandlerTypeLen-4                 20.0 ± 0%      20.0 ± 0%     ~     (all samples are equal)
ServerHijack-4                         46.0 ± 0%      47.0 ± 0%   +2.17%          (p=0.029 n=4+4)

name                               old speed      new speed      delta
ReadRequestApachebench-4           50.2MB/s ± 1%  49.5MB/s ± 1%   -1.33%          (p=0.029 n=4+4)
ReadRequestChrome-4                 207MB/s ± 1%   209MB/s ± 1%     ~             (p=0.343 n=4+4)
ReadRequestCurl-4                  48.1MB/s ± 0%  47.2MB/s ± 1%   -1.81%          (p=0.029 n=4+4)
ReadRequestSiege-4                 71.6MB/s ± 1%  71.0MB/s ± 0%     ~             (p=0.343 n=4+4)
ReadRequestWrk-4                   35.0MB/s ± 1%  34.3MB/s ± 1%   -2.22%          (p=0.029 n=4+4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment