xref: /openbmc/qemu/tests/bench/meson.build (revision 75bbe5e5)
1
2qht_bench = executable('qht-bench',
3                       sources: 'qht-bench.c',
4                       dependencies: [qemuutil])
5
6executable('atomic_add-bench',
7           sources: files('atomic_add-bench.c'),
8           dependencies: [qemuutil],
9           build_by_default: false)
10
11executable('atomic64-bench',
12           sources: files('atomic64-bench.c'),
13           dependencies: [qemuutil],
14           build_by_default: false)
15
16benchs = {}
17
18if have_block
19  benchs += {
20     'benchmark-crypto-hash': [crypto],
21     'benchmark-crypto-hmac': [crypto],
22     'benchmark-crypto-cipher': [crypto],
23     'benchmark-crypto-akcipher': [crypto],
24  }
25endif
26
27foreach bench_name, deps: benchs
28  exe = executable(bench_name, bench_name + '.c',
29                   dependencies: [qemuutil] + deps)
30  benchmark(bench_name, exe,
31            args: ['--tap', '-k'],
32            protocol: 'tap',
33            timeout: 0,
34            suite: ['speed'])
35endforeach
36