mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-26 19:23:26 -03:00
bench: Add benchmark for CRollingBloomFilter::reset
This commit is contained in:
parent
3001cc61cf
commit
d2dbc7da26
1 changed files with 9 additions and 0 deletions
|
@ -28,4 +28,13 @@ static void RollingBloom(benchmark::State& state)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void RollingBloomReset(benchmark::State& state)
|
||||||
|
{
|
||||||
|
CRollingBloomFilter filter(120000, 0.000001);
|
||||||
|
while (state.KeepRunning()) {
|
||||||
|
filter.reset();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
BENCHMARK(RollingBloom, 1500 * 1000);
|
BENCHMARK(RollingBloom, 1500 * 1000);
|
||||||
|
BENCHMARK(RollingBloomReset, 20000);
|
||||||
|
|
Loading…
Add table
Reference in a new issue