A high-performance MPSC queue between wait-free and lock-free, that is, a multi-producer but consumer queue

Time-consuming test with using go channel:

Test Case:

1W producers, each producer writes 100 times. Statistics on the time taken by all producers to write to the queue

Go version:

go version go1.16.11 darwin/amd64.

Machine information

  • Model: macOS Big Sur 11.5.2
  • Cpu: Six cores Intel Core i7
  • Memory: 16g

Test Result:



View Github