# Scalability Benchmark

N producer threads push a 4-byte integer into one same queue, N consumer threads pop the integers from the queue. All producers posts 1,000,000 messages in total. Total time to send and receive all the messages is measured. The benchmark is run for from 1 producer and 1 consumer up to (total-number-of-cpus / 2) producers/consumers to measure the scalabilty of different queues. The minimum, maximum, mean and standard deviation of at least 33 runs are reported in the tooltip.

### Scalability on Intel i9-9900KS

### Scalability on AMD Ryzen 7 5825U

### Scalability on Intel Xeon Gold 6132

### Scalability on AMD Ryzen 9 5950X

# Latency Benchmark

One thread posts a 4-byte integer to another thread through one queue and waits for a reply from another queue (2 queues in total). The benchmark measures the total time of 100,000 ping-pongs, best of 10 runs. Contention is minimal here (1-producer-1-consumer, 1 element in the queue) to be able to achieve and measure the lowest latency. Reports the average round-trip time, i.e. the time it takes to post a message to another thread and receive a reply. The minimum, maximum, mean and standard deviation of at least 33 runs are reported in the tooltip.

### Latency on Intel i9-9900KS

### Latency on AMD Ryzen 7 5825U

### Latency on Intel Xeon Gold 6132

### Latency on AMD Ryzen 9 5950X

# Systems details

### Intel i9-9900KS system

- OS: Kubuntu-18.04.4 LTS
- Compiler: gcc-8.4.0
- atomic_queue version: commit 7e138d21fcd4bad95e030d8d6c8b77d5a4538baa
- Boost version: 1.65.1
- TBB version: 2019_U7, commit 4233fef583b4f8cbf9f781311717600feaaa0694
- moodycamel concurrentqueue version: commit dea078cf5b6e742cd67a0d725e36f872feca4de4
- moodycamel readerwriterqueue version: commit 2ae710de996a1d02bbc7696b2cdff2c6078e76f8
- xenium library version: commit f6416d30043a7d025405038d5ddd4794aaaab4a3

### AMD Ryzen 7 5825U system

- OS: Kubuntu 22.04 LTS
- Compiler: gcc-11.2.0
- atomic_queue version: commit 7d75e9ed0359650224b29cdf6728c5fe0a19fffb
- Boost version: 1.74.0
- TBB version: 2021.5.0
- moodycamel concurrentqueue version: commit dea078cf5b6e742cd67a0d725e36f872feca4de4
- moodycamel readerwriterqueue version: commit 2ae710de996a1d02bbc7696b2cdff2c6078e76f8
- xenium library version: commit f6416d30043a7d025405038d5ddd4794aaaab4a3

### Intel Xeon Gold 6132 system

- OS: Red Hat Enterprise Linux Server release 6.10 (Santiago)
- Compiler: gcc-8.4.0
- atomic_queue version: commit 7e138d21fcd4bad95e030d8d6c8b77d5a4538baa
- Boost version: 1.65.1
- TBB version: 2019_U7, commit 4233fef583b4f8cbf9f781311717600feaaa0694
- moodycamel concurrentqueue version: commit dea078cf5b6e742cd67a0d725e36f872feca4de4
- moodycamel readerwriterqueue version: commit 2ae710de996a1d02bbc7696b2cdff2c6078e76f8
- xenium library version: commit f6416d30043a7d025405038d5ddd4794aaaab4a3

### AMD Ryzen 9 5950X system

- OS: KDE Neon based on Ubuntu 20.04 and XanMod Kernel 5.10 LTS.
- Compiler: gcc-9.3.0
- atomic_queue version: commit e02078c14cab70f0df594ea3406f1240297e11d7
- Boost version: 1.71.0
- TBB version: 2019_U7, commit 4233fef583b4f8cbf9f781311717600feaaa0694
- moodycamel concurrentqueue version: commit dea078cf5b6e742cd67a0d725e36f872feca4de4
- moodycamel readerwriterqueue version: commit 2ae710de996a1d02bbc7696b2cdff2c6078e76f8
- xenium library version: commit f6416d30043a7d025405038d5ddd4794aaaab4a3

# Homepage

github.com/max0x7ba/atomic_queue

Copyright (c) 2019 Maxim Egorushkin. MIT License. See the full licence in file LICENSE.