[compiler-rt] 8383e49 - [sanitizer] Cleanup benchmark
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 13 13:58:37 PDT 2021
Author: Vitaly Buka
Date: 2021-10-13T13:58:28-07:00
New Revision: 8383e49b5350d73be1c4895d20e950cd76d0e3c2
URL: https://github.com/llvm/llvm-project/commit/8383e49b5350d73be1c4895d20e950cd76d0e3c2
DIFF: https://github.com/llvm/llvm-project/commit/8383e49b5350d73be1c4895d20e950cd76d0e3c2.diff
LOG: [sanitizer] Cleanup benchmark
Added:
Modified:
compiler-rt/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cpp b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cpp
index 5ecb262ed0f2..ab0ae7896e5a 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cpp
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cpp
@@ -127,13 +127,16 @@ static struct SanitizerCommonBenchmarkparams {
{3000000, 10, 4},
{3000000, 10, 16},
// Update use count as msan/dfsan.
+ {3000000, 10, 1, false, true},
+ {3000000, 10, 4, false, true},
{3000000, 10, 16, false, true},
- // As above, but traces are unique inside of thread.
+ // Unrealistic, as above, but traces are unique inside of thread.
{4000000, 1, 4, true},
{2000000, 1, 16, true},
{2000000, 10, 4, true},
{500000, 10, 16, true},
- {3000000, 10, 16, true, true},
+ {1500000, 10, 4, true, true},
+ {800000, 10, 16, true, true},
};
std::string PrintSanitizerCommonBenchmarkparams(
@@ -180,7 +183,8 @@ class SanitizerCommonBenchmark
// down check-sanitizer.
// Usage: Sanitizer-<ARCH>-Test --gtest_also_run_disabled_tests \
// '--gtest_filter=*Benchmark*'
-TEST_P(SanitizerCommonBenchmark, DISABLED_BenchmarkInsertUniqueThreaded) {
+TEST_P(SanitizerCommonBenchmark, DISABLED_Benchmark) {
+ // Call in subprocess to avoid reuse of the depot.
EXPECT_EXIT((Run(), exit(0)), ::testing::ExitedWithCode(0), "");
}
More information about the llvm-commits
mailing list