xref: /openbmc/qemu/tests/bench/meson.build (revision 60f782b6)
1
2qht_bench = executable('qht-bench',
3                       sources: 'qht-bench.c',
4                       dependencies: [qemuutil])
5
6qtree_bench = executable('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     'benchmark-crypto-hash': [crypto],
25     'benchmark-crypto-hmac': [crypto],
26     'benchmark-crypto-cipher': [crypto],
27     'benchmark-crypto-akcipher': [crypto],
28  }
29endif
30
31foreach bench_name, deps: benchs
32  exe = executable(bench_name, bench_name + '.c',
33                   dependencies: [qemuutil] + deps)
34  benchmark(bench_name, exe,
35            args: ['--tap', '-k'],
36            protocol: 'tap',
37            timeout: 0,
38            suite: ['speed'])
39endforeach
40