The channel_test has a big bug!
rickysland opened this issue · comments
BenchmarkRingBufferReadContention and BenchmarkRingBufferContention
you must give more capacity to ringbuffer
or
you must ensure that the q.Get() excute.
because b.N first call is 1 and the q.Put() op will block!!