Skip to content

Commit d94d018

Browse files
authored
Refine README for clarity and benchmark updates
1 parent 4e4a75e commit d94d018

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPSCQueue
2-
A single producer single consumer wait-free and lock-free fixed size queue written in Zig, inspired by [rigtorp's](https://github.com/rigtorp/SPSCQueue/tree/master) implementation in C++. This implementation is faster than [rigtorp/SPSCQueue](https://github.com/rigtorp/SPSCQueue/tree/master).
2+
A single producer single consumer wait-free and lock-free fixed size queue written in Zig, inspired by [rigtorp's](https://github.com/rigtorp/SPSCQueue/tree/master) implementation in C++ and faster than it.
33

44
## Implementation
55

@@ -38,13 +38,20 @@ pub inline fn isEmpty(self: *Self) bool
3838

3939
## Benchmarks
4040

41-
Benchmark results from 12th Gen Intel(R) Core(TM) i7-12700H with CPU affinity settings on every thread:
41+
Benchmark results from 12th Gen Intel(R) Core(TM) i7-12700H with `-O3` and CPU affinity settings on every thread:
4242

4343
| Queue | Throughput (ops/ms) | Latency RTT (ns) |
4444
| ---------------------------- | ------------------: | ---------------: |
45-
| SPSCQueue (Andrea Vaccaro) | 931449 | 187 |
46-
| SPSCQueue (rigtorp) | 166279 | 206 |
47-
| boost::lockfree::spsc | 258024 | 224 |
45+
| SPSCQueue (Andrea Vaccaro) | 995223 | 164 |
46+
| SPSCQueue (rigtorp) | 168015 | 162 |
47+
| boost::lockfree::spsc | 188162 | 215 |
48+
| folly::ProducerConsumerQueue | 88596 | 166 |
49+
50+
<div align="center" style="display:grid;place-items:center;">
51+
<p>
52+
<img src="https://github.com/ANDRVV/SPSCQueue/blob/main/assets/benchmarks-chart.png?raw=true" alt="benchmark chart">
53+
</p>
54+
</div>
4855

4956
## About
5057

0 commit comments

Comments
 (0)