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