- mutex
- condition_variable
- go channels (buffered and unbuffered)
- mpms queue
- atomic counter
- clang++-15
- Conan 1.59.0
- buffered channels.
- unbuffered channels.
- buffered channels with MPMC queue.
- benchmark
Benchmark | Time | CPU | Iterations |
---|---|---|---|
simple_counter/iterations:10 | 21221 us | 352 us | 10 |
shards_counter/iterations:10 | 4953 us | 247 us | 10 |
- stack with counter
- stack with hazard pointers