[libcxx-commits] [libcxx] 721d1a0 - [libc++] Disable std::shared_mutex benchmarks outside of dry-run

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Sep 23 11:46:44 PDT 2025


Author: Louis Dionne
Date: 2025-09-23T14:45:43-04:00
New Revision: 721d1a009e528e66d788e7b3c17800633dc7bd24

URL: https://github.com/llvm/llvm-project/commit/721d1a009e528e66d788e7b3c17800633dc7bd24
DIFF: https://github.com/llvm/llvm-project/commit/721d1a009e528e66d788e7b3c17800633dc7bd24.diff

LOG: [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.

Added: 
    

Modified: 
    libcxx/test/benchmarks/shared_mutex_vs_mutex.bench.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/benchmarks/shared_mutex_vs_mutex.bench.cpp b/libcxx/test/benchmarks/shared_mutex_vs_mutex.bench.cpp
index 84a49a8d07d04..84729ebe013df 100644
--- a/libcxx/test/benchmarks/shared_mutex_vs_mutex.bench.cpp
+++ b/libcxx/test/benchmarks/shared_mutex_vs_mutex.bench.cpp
@@ -8,6 +8,10 @@
 
 // UNSUPPORTED: c++03, c++11, c++14
 
+// This benchmark is very expensive and we don't want to run it on a regular basis,
+// only to ensure the code doesn't rot.
+// REQUIRES: enable-benchmarks=dry-run
+
 // This benchmark compares the performance of std::mutex and std::shared_mutex in contended scenarios.
 // it's meant to establish a baseline overhead for std::shared_mutex and std::mutex, and to help inform decisions about
 // which mutex to use when selecting a mutex type for a given use case.


        


More information about the libcxx-commits mailing list