Skip to content

Add MPMC comparison benchmark#2

Open
caomengxuan666 wants to merge 1 commit intodakingffo:masterfrom
caomengxuan666:add-mpmc-comparison-benchmark
Open

Add MPMC comparison benchmark#2
caomengxuan666 wants to merge 1 commit intodakingffo:masterfrom
caomengxuan666:add-mpmc-comparison-benchmark

Conversation

@caomengxuan666
Copy link
Copy Markdown

Summary

  • add moodycamel::ConcurrentQueue v1.0.5 as an MPMC reference queue
  • add a Google Benchmark target that compares uniform single enqueue, uneven wave, and bulk enqueue MPSC workloads
  • document the Clang Release benchmark results in both English and Chinese READMEs

Validation

  • cmake -S . -B out/build/clang-local -G Ninja -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release
  • cmake --build out/build/clang-local --target mpsc_vs_mpmc_benchmark
  • cmake --build out/build/clang-local --target mpsc_tests
  • ctest --test-dir out/build/clang-local -R MPSC --output-on-failure
  • .\out\build\clang-local\mpsc_vs_mpmc_benchmark.exe --benchmark_min_time=0.1s --benchmark_repetitions=1 --benchmark_counters_tabular=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant