mirror of
https://github.com/NixOS/nix.git
synced 2025-12-22 17:01:08 +01:00
libstore-tests: reduce registerValidPaths benchmark to single test case
Testing with 10 derivations is sufficient to verify performance characteristics. The larger test cases (50, 200) don't provide additional insight and slow down the benchmark unnecessarily.
This commit is contained in:
parent
1f739961e5
commit
994324feda
1 changed files with 1 additions and 1 deletions
|
|
@ -74,6 +74,6 @@ static void BM_RegisterValidPathsDerivations(benchmark::State & state)
|
||||||
state.SetItemsProcessed(state.iterations() * derivationCount);
|
state.SetItemsProcessed(state.iterations() * derivationCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
BENCHMARK(BM_RegisterValidPathsDerivations)->Arg(10)->Arg(50)->Arg(200);
|
BENCHMARK(BM_RegisterValidPathsDerivations)->Arg(10);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue