mirror of
https://github.com/soheilhy/cmux.git
synced 2026-08-03 21:27:20 +08:00
This commit fixes a major issue added in 703b087a.
There are still wins on allocation though.
benchmark old ns/op new ns/op delta
BenchmarkCMuxConnHTTP1-4 783 836 +6.77%
BenchmarkCMuxConnHTTP2-4 895 806 -9.94%
BenchmarkCMuxConnHTTP1n2-4 1000 1026 +2.60%
BenchmarkCMuxConnHTTP2n1-4 916 961 +4.91%
benchmark old allocs new allocs delta
BenchmarkCMuxConnHTTP1-4 3 4 +33.33%
BenchmarkCMuxConnHTTP2-4 4 4 +0.00%
BenchmarkCMuxConnHTTP1n2-4 4 5 +25.00%
BenchmarkCMuxConnHTTP2n1-4 4 5 +25.00%
benchmark old bytes new bytes delta
BenchmarkCMuxConnHTTP1-4 272 280 +2.94%
BenchmarkCMuxConnHTTP2-4 304 304 +0.00%
BenchmarkCMuxConnHTTP1n2-4 304 312 +2.63%
BenchmarkCMuxConnHTTP2n1-4 304 312 +2.63%
3.1 KiB
3.1 KiB