blob: 4e6b4690661d36be5ee6b645a016ebfd6411be4a [file] [log] [blame]
Thomas Huth3b472e72021-03-12 10:22:38 +01001
2qht_bench = executable('qht-bench',
3 sources: 'qht-bench.c',
4 dependencies: [qemuutil])
5
ling xucc98c9f2022-11-16 23:29:23 +08006if have_system
7xbzrle_bench = executable('xbzrle-bench',
8 sources: 'xbzrle-bench.c',
9 dependencies: [qemuutil,migration])
10endif
11
Emilio Cotae3feb2c2023-02-05 11:37:57 -050012qtree_bench = executable('qtree-bench',
13 sources: 'qtree-bench.c',
14 dependencies: [qemuutil])
15
Thomas Huth3b472e72021-03-12 10:22:38 +010016executable('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],
Lei He689309c2022-05-25 17:01:16 +080033 'benchmark-crypto-akcipher': [crypto],
Thomas Huth3b472e72021-03-12 10:22:38 +010034 }
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