Implement faster mju_isZeroByte.
PiperOrigin-RevId: 814148714 Change-Id: Iaf5ed9d3502eaaaee8d46a986f2db00811ae0707
This commit is contained in:
committed by
Copybara-Service
parent
401bf431b8
commit
91257896c0
@@ -46,6 +46,11 @@ ABSL_ATTRIBUTE_NO_TAIL_CALL static void IzZeroBenchmark(
|
||||
}
|
||||
|
||||
// Define benchmarks.
|
||||
void BM_isZeroByte_10(benchmark::State& state) {
|
||||
IzZeroBenchmark(state, 10, true);
|
||||
}
|
||||
BENCHMARK(BM_isZeroByte_10);
|
||||
|
||||
void BM_isZeroByte_1e2(benchmark::State& state) {
|
||||
IzZeroBenchmark(state, 100, true);
|
||||
}
|
||||
@@ -56,6 +61,11 @@ void BM_isZeroByte_1e5(benchmark::State& state) {
|
||||
}
|
||||
BENCHMARK(BM_isZeroByte_1e5);
|
||||
|
||||
void BM_isZero_10(benchmark::State& state) {
|
||||
IzZeroBenchmark(state, 10, false);
|
||||
}
|
||||
BENCHMARK(BM_isZero_10);
|
||||
|
||||
void BM_isZero_1e2(benchmark::State& state) {
|
||||
IzZeroBenchmark(state, 100, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user