bench-store-index: make a bit more realistic
```
.',;::::;,'. djcb@evergrey
.';:cccccccccccc:;,. -------------
.;cccccccccccccccccccccc;. OS: Fedora release 36 (Thirty Six) x86_64
.:cccccccccccccccccccccccccc:. Host: MS-7B09 2.0
.;ccccccccccccc;.:dddl:.;ccccccc;. Kernel: 5.17.11-300.fc36.x86_64
.:ccccccccccccc;OWMKOOXMWd;ccccccc:. Uptime: 6 hours, 16 mins
.:ccccccccccccc;KMMc;cc;xMMc:ccccccc:. Packages: 4340 (rpm), 70 (flatpak)
,cccccccccccccc;MMM.;cc;;WW::cccccccc, Shell: zsh 5.8.1
:cccccccccccccc;MMM.;cccccccccccccccc: Resolution: 3840x2160
:ccccccc;oxOOOo;MMM0OOk.;cccccccccccc: WM: sway
cccccc:0MMKxdd:;MMMkddc.;cccccccccccc; Theme: Adwaita [GTK2]
ccccc:XM0';cccc;MMM.;cccccccccccccccc' Icons: Adwaita [GTK2]
ccccc;MMo;ccccc;MMW.;ccccccccccccccc; Terminal: tilix
ccccc;0MNc.ccc.xMMd:ccccccccccccccc; CPU: AMD Ryzen Threadripper 1950X (32) @ 3.399GHz
cccccc;dNMWXXXWM0::cccccccccccccc:, GPU: AMD ATI Radeon RX 470/480/570/570X/580/580X/590
cccccccc;.:odl:.;cccccccccccccc:,. Memory: 7101MiB / 15881MiB
:cccccccccccccccccccccccccccc:'.
.:cccccccccccccccccccccc:;,..
'::cccccccccccccc::;,.
```
% make benchmark
ninja -C /home/djcb/Sources/mu/build benchmark
ninja: Entering directory `/home/djcb/Sources/mu/build'
[0/1] Running benchmark suite.
1/1 bench-store-index OK 17.40s
This commit is contained in:
@ -49,16 +49,33 @@ test('test-parser',
|
||||
'test-parser.cc',
|
||||
install: false,
|
||||
dependencies: [glib_dep, gmime_dep, lib_mu_dep, lib_test_mu_common_dep]))
|
||||
|
||||
# test('test-store-query',
|
||||
# executable('test-store-query',
|
||||
# 'test-mu-store-query.cc',
|
||||
# install: false,
|
||||
# dependencies: [glib_dep, gmime_dep, lib_mu_dep, lib_test_mu_common_dep]))
|
||||
#
|
||||
# benchmarks
|
||||
#
|
||||
bench_maildirs=join_paths(meson.current_build_dir(), 'maildirs')
|
||||
bench_store=join_paths(meson.current_build_dir(), 'store')
|
||||
benchmark('bench-store',
|
||||
executable('bench-store',
|
||||
'bench-mu-store.cc',
|
||||
install:false,
|
||||
cpp_args:['-DBENCH_MAILDIRS="' + bench_maildirs + '"',
|
||||
'-DBENCH_STORE="' + bench_store + '"',
|
||||
],
|
||||
dependencies: [lib_mu_dep, glib_dep]))
|
||||
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'])
|
||||
|
||||
#
|
||||
# below does _not_ pass; it is believed that it's a false alarm.
|
||||
# https://gitlab.gnome.org/GNOME/glib/-/issues/2662
|
||||
|
||||
# also register benchmark as a normal test so it gets included for
|
||||
# valgrind/helgrind etc.
|
||||
# test('test-bench-indexer', bench_indexer_exe,
|
||||
# args : ['-m', 'quick'], env: ['THREADNUM=16'])
|
||||
|
||||
Reference in New Issue
Block a user