1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-03 07:31:00 +01:00

libstore-tests: Split bench-main into a separate file

This makes it easier to add new benchmarks.
This commit is contained in:
Sergei Zimmerman 2025-08-03 00:53:24 +03:00
parent b8301b2c25
commit b2b2f2dc53
No known key found for this signature in database
3 changed files with 20 additions and 14 deletions

View file

@ -110,9 +110,14 @@ test(
if get_option('benchmarks')
gbenchmark = dependency('benchmark', required : true)
benchmark_sources = files(
'bench-main.cc',
'derivation-parser-bench.cc',
)
benchmark_exe = executable(
'nix-store-benchmarks',
'derivation-parser-bench.cc',
benchmark_sources,
config_priv_h,
dependencies : deps_private_subproject + deps_private + deps_other + [gbenchmark],
include_directories : include_dirs,