smol-rs / concurrent-queue

Concurrent multi-producer multi-consumer queue
Apache License 2.0
254 stars 22 forks source link

Add benchmarks for unbounded queues #13

Closed gmorenz closed 2 years ago

gmorenz commented 3 years ago

Does what it says on the tin.

I wrote this planning to propose changing the AtomicUsize in unbounded::Slot to an AtomicU8, turns out that doesn't really improve performance though so I won't be submitting that PR (image of benchmark attached, since the colors really help).

image

taiki-e commented 2 years ago

Thanks!

(Opened #23 for bounded queue benches)