mirror of
https://github.com/intel/llvm.git
synced 2026-02-01 08:56:15 +08:00
[libc++] Disable atomic_wait benchmarks outside of dry-run mode (#158631)
The atomic_wait benchmarks are great, but they tend to overload the system they're running on. For that reason, we can't run them on our CI infrastructure on a regular basis. Instead of removing them, make them unsupported outside of dry-running, which allows keeping the benchmarks around and ensuring they don't rot, but doesn't run them along with the other benchmarks. If we need to investigate atomic_wait performance, it's trivial to mark the benchmark as supported and run it for local investigations. This is an alternative to https://github.com/llvm/llvm-project/pull/158289.
This commit is contained in:
@@ -8,6 +8,10 @@
|
||||
|
||||
// UNSUPPORTED: c++03, c++11, c++14, c++17
|
||||
|
||||
// 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
|
||||
|
||||
#include "atomic_wait_helper.h"
|
||||
|
||||
#include <atomic>
|
||||
|
||||
@@ -8,6 +8,10 @@
|
||||
|
||||
// UNSUPPORTED: c++03, c++11, c++14, c++17
|
||||
|
||||
// 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
|
||||
|
||||
#include "atomic_wait_helper.h"
|
||||
|
||||
#include <atomic>
|
||||
|
||||
@@ -8,6 +8,10 @@
|
||||
|
||||
// UNSUPPORTED: c++03, c++11, c++14, c++17
|
||||
|
||||
// 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
|
||||
|
||||
#include "atomic_wait_helper.h"
|
||||
|
||||
#include <atomic>
|
||||
|
||||
@@ -8,6 +8,10 @@
|
||||
|
||||
// UNSUPPORTED: c++03, c++11, c++14, c++17
|
||||
|
||||
// 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
|
||||
|
||||
#include <atomic>
|
||||
#include <cstdint>
|
||||
#include <mutex>
|
||||
|
||||
Reference in New Issue
Block a user