diff options
Diffstat (limited to 'test/perf')
-rw-r--r-- | test/perf/BUILD | 10 | ||||
-rw-r--r-- | test/perf/linux/getdents_benchmark.cc | 2 | ||||
-rw-r--r-- | test/perf/linux/signal_benchmark.cc | 10 |
3 files changed, 13 insertions, 9 deletions
diff --git a/test/perf/BUILD b/test/perf/BUILD index 7a2bf10ed..0a0def6a3 100644 --- a/test/perf/BUILD +++ b/test/perf/BUILD @@ -29,7 +29,8 @@ syscall_test( ) syscall_test( - size = "large", + size = "enormous", + tags = ["nogotsan"], test = "//test/perf/linux:getdents_benchmark", ) @@ -39,7 +40,8 @@ syscall_test( ) syscall_test( - size = "large", + size = "enormous", + tags = ["nogotsan"], test = "//test/perf/linux:gettid_benchmark", ) @@ -87,7 +89,7 @@ syscall_test( ) syscall_test( - size = "large", + size = "enormous", test = "//test/perf/linux:signal_benchmark", ) @@ -102,7 +104,7 @@ syscall_test( ) syscall_test( - size = "large", + size = "enormous", add_overlay = True, test = "//test/perf/linux:unlink_benchmark", ) diff --git a/test/perf/linux/getdents_benchmark.cc b/test/perf/linux/getdents_benchmark.cc index 0e03975b4..afc599ad2 100644 --- a/test/perf/linux/getdents_benchmark.cc +++ b/test/perf/linux/getdents_benchmark.cc @@ -141,7 +141,7 @@ void BM_GetdentsNewFD(benchmark::State& state) { state.SetItemsProcessed(state.iterations()); } -BENCHMARK(BM_GetdentsNewFD)->Range(1, 1 << 16)->UseRealTime(); +BENCHMARK(BM_GetdentsNewFD)->Range(1, 1 << 12)->UseRealTime(); } // namespace diff --git a/test/perf/linux/signal_benchmark.cc b/test/perf/linux/signal_benchmark.cc index a6928df58..cec679191 100644 --- a/test/perf/linux/signal_benchmark.cc +++ b/test/perf/linux/signal_benchmark.cc @@ -43,11 +43,13 @@ void BM_FaultSignalFixup(benchmark::State& state) { // Fault, fault, fault. for (auto _ : state) { - register volatile unsigned int* ptr asm("rax"); - // Trigger the segfault. - ptr = nullptr; - *ptr = 0; + asm volatile( + "movq $0, %%rax\n" + "movq $0x77777777, (%%rax)\n" + : + : + : "rax"); } } |