xref: /openbmc/qemu/tests/bench/meson.build (revision 835fde4a)
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  }
24endif
25
26foreach bench_name, deps: benchs
27  exe = executable(bench_name, bench_name + '.c',
28                   dependencies: [qemuutil] + deps)
29  benchmark(bench_name, exe,
30            args: ['--tap', '-k'],
31            protocol: 'tap',
32            timeout: 0,
33            suite: ['speed'])
34endforeach
35