Skip to content

Commit 721d1a0

Browse files
committed
[libc++] Disable std::shared_mutex benchmarks outside of dry-run
Like some of the atomic_wait benchmarks, it is very expensive and only intended for A/B comparisons when actively investigating.
1 parent 19ffca5 commit 721d1a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libcxx/test/benchmarks/shared_mutex_vs_mutex.bench.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99
// UNSUPPORTED: c++03, c++11, c++14
1010

11+
// This benchmark is very expensive and we don't want to run it on a regular basis,
12+
// only to ensure the code doesn't rot.
13+
// REQUIRES: enable-benchmarks=dry-run
14+
1115
// This benchmark compares the performance of std::mutex and std::shared_mutex in contended scenarios.
1216
// it's meant to establish a baseline overhead for std::shared_mutex and std::mutex, and to help inform decisions about
1317
// which mutex to use when selecting a mutex type for a given use case.

0 commit comments

Comments
 (0)