xref: /openbmc/qemu/tests/bench/meson.build (revision d6ee2e32)
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
12executable('atomic_add-bench',
13           sources: files('atomic_add-bench.c'),
14           dependencies: [qemuutil],
15           build_by_default: false)
16
17executable('atomic64-bench',
18           sources: files('atomic64-bench.c'),
19           dependencies: [qemuutil],
20           build_by_default: false)
21
22benchs = {}
23
24if have_block
25  benchs += {
26     'benchmark-crypto-hash': [crypto],
27     'benchmark-crypto-hmac': [crypto],
28     'benchmark-crypto-cipher': [crypto],
29     'benchmark-crypto-akcipher': [crypto],
30  }
31endif
32
33foreach bench_name, deps: benchs
34  exe = executable(bench_name, bench_name + '.c',
35                   dependencies: [qemuutil] + deps)
36  benchmark(bench_name, exe,
37            args: ['--tap', '-k'],
38            protocol: 'tap',
39            timeout: 0,
40            suite: ['speed'])
41endforeach
42