Skip to content

Benchmarks

Alina Bondarets edited this page Sep 1, 2022 · 4 revisions

Benchmarks are written using the Google Benchmark library.

MS Queue & Two-Lock Queue

There are 3 tests:

  1. Multiple Producer Multiple Consumer (EnqueueDequeue)
  2. Multiple Producer Single Consumer (EnqueueDequeueOnce)
  3. Single Producer Multiple Consumer (EnqueueOnceDequeue)

Each test runned with 3 different data types:

  1. int
  2. std::string
  3. a simple custom struct

❕❕❕ There is bad_alloc error while running with std::string

Also, MS Queue was tested with 2 different back-offs:

  1. Exponential
  2. Yield

image

Related sources:

  1. Google Benchmarks:
Clone this wiki locally