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:
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user