xref: /openbmc/qemu/tests/bench/meson.build (revision 909aff7eaf6335aeeb4962fb0ac2a6c571c96af2)
13b472e71SThomas Huth
23b472e71SThomas Huthqht_bench = executable('qht-bench',
33b472e71SThomas Huth                       sources: 'qht-bench.c',
43b472e71SThomas Huth                       dependencies: [qemuutil])
53b472e71SThomas Huth
6781fa471SPaolo Bonziniexecutable('qtree-bench',
7e3feb2ccSEmilio Cota           sources: 'qtree-bench.c',
8e3feb2ccSEmilio Cota           dependencies: [qemuutil])
9e3feb2ccSEmilio Cota
103b472e71SThomas Huthexecutable('atomic_add-bench',
113b472e71SThomas Huth           sources: files('atomic_add-bench.c'),
123b472e71SThomas Huth           dependencies: [qemuutil],
133b472e71SThomas Huth           build_by_default: false)
143b472e71SThomas Huth
153b472e71SThomas Huthexecutable('atomic64-bench',
163b472e71SThomas Huth           sources: files('atomic64-bench.c'),
173b472e71SThomas Huth           dependencies: [qemuutil],
183b472e71SThomas Huth           build_by_default: false)
193b472e71SThomas Huth
203b472e71SThomas Huthbenchs = {}
213b472e71SThomas Huth
223b472e71SThomas Huthif have_block
233b472e71SThomas Huth  benchs += {
24*a06d9eddSRichard Henderson     'bufferiszero-bench': [],
253b472e71SThomas Huth     'benchmark-crypto-hash': [crypto],
263b472e71SThomas Huth     'benchmark-crypto-hmac': [crypto],
273b472e71SThomas Huth     'benchmark-crypto-cipher': [crypto],
28689309c4SLei He     'benchmark-crypto-akcipher': [crypto],
293b472e71SThomas Huth  }
303b472e71SThomas Huthendif
313b472e71SThomas Huth
323b472e71SThomas Huthforeach bench_name, deps: benchs
333b472e71SThomas Huth  exe = executable(bench_name, bench_name + '.c',
343b472e71SThomas Huth                   dependencies: [qemuutil] + deps)
353b472e71SThomas Huth  benchmark(bench_name, exe,
363b472e71SThomas Huth            args: ['--tap', '-k'],
373b472e71SThomas Huth            protocol: 'tap',
383b472e71SThomas Huth            timeout: 0,
393b472e71SThomas Huth            suite: ['speed'])
403b472e71SThomas Huthendforeach
41