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