-
Notifications
You must be signed in to change notification settings - Fork 0
Benchmarks
Alina Bondarets edited this page Sep 1, 2022
·
4 revisions
Benchmarks are written using the Google Benchmark library. There are 3 Fixture tests:
- Multiple Producer Multiple Consumer (EnqueueDequeue)
- Multiple Producer Single Consumer (EnqueueDequeueOnce)
- Single Producer Multiple Consumer (EnqueueOnceDequeue)
Each test runned with 3 different data types:
int
std::string
- a simple custom
struct
❕❕❕ There is bad_alloc error while running with std::string
Also, MS Queue was tested with 2 different back-offs:
- Exponential
- Yield
-
Google Benchmarks:
- Source code: https://github.com/google/benchmark
- Installation: https://github.com/google/benchmark#installation
- Use with CMake: https://github.com/google/benchmark#usage-with-cmake
- User guide: https://github.com/google/benchmark/blob/main/docs/user_guide.md
- Fixtures: