bench: update benchmark runner

Modernize code a bit; and use a temporary dir for the working set.
Typically, this makes the tests run faster (since the temporary dir is
often in-memory), which allows focusing on the part we can most easily
influence.
This commit is contained in:
Dirk-Jan C. Binnema
2026-07-20 16:27:40 +03:00
committed by Seth Ladygo
parent 5f385dd6a1
commit b0d5dc545e
2 changed files with 89 additions and 59 deletions

View File

@ -145,12 +145,8 @@ bench_indexer_exe = executable(
'bench-indexer',
'bench-indexer.cc',
install:false,
cpp_args:['-DBENCH_MAILDIRS="' + bench_maildirs + '"',
'-DBENCH_STORE="' + bench_store + '"',
],
dependencies: [lib_mu_dep, glib_dep])
benchmark('bench-indexer', bench_indexer_exe, args: ['-m', 'perf'])
benchmark('bench-indexer', bench_indexer_exe, timeout:100, args: ['-m', 'perf'])
#
# below does _not_ pass; it is believed that it's a false alarm.