1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-22 08:51: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:
Jörg Thalheim 2025-12-18 09:46:03 +01:00
parent 1f739961e5
commit 994324feda

View file

@ -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