Thomas Huth | 3b472e7 | 2021-03-12 10:22:38 +0100 | [diff] [blame] | 1 | |
| 2 | qht_bench = executable('qht-bench', |
| 3 | sources: 'qht-bench.c', |
| 4 | dependencies: [qemuutil]) |
| 5 | |
ling xu | cc98c9f | 2022-11-16 23:29:23 +0800 | [diff] [blame] | 6 | if have_system |
| 7 | xbzrle_bench = executable('xbzrle-bench', |
| 8 | sources: 'xbzrle-bench.c', |
| 9 | dependencies: [qemuutil,migration]) |
| 10 | endif |
| 11 | |
Emilio Cota | e3feb2c | 2023-02-05 11:37:57 -0500 | [diff] [blame] | 12 | qtree_bench = executable('qtree-bench', |
| 13 | sources: 'qtree-bench.c', |
| 14 | dependencies: [qemuutil]) |
| 15 | |
Thomas Huth | 3b472e7 | 2021-03-12 10:22:38 +0100 | [diff] [blame] | 16 | executable('atomic_add-bench', |
| 17 | sources: files('atomic_add-bench.c'), |
| 18 | dependencies: [qemuutil], |
| 19 | build_by_default: false) |
| 20 | |
| 21 | executable('atomic64-bench', |
| 22 | sources: files('atomic64-bench.c'), |
| 23 | dependencies: [qemuutil], |
| 24 | build_by_default: false) |
| 25 | |
| 26 | benchs = {} |
| 27 | |
| 28 | if have_block |
| 29 | benchs += { |
| 30 | 'benchmark-crypto-hash': [crypto], |
| 31 | 'benchmark-crypto-hmac': [crypto], |
| 32 | 'benchmark-crypto-cipher': [crypto], |
Lei He | 689309c | 2022-05-25 17:01:16 +0800 | [diff] [blame] | 33 | 'benchmark-crypto-akcipher': [crypto], |
Thomas Huth | 3b472e7 | 2021-03-12 10:22:38 +0100 | [diff] [blame] | 34 | } |
| 35 | endif |
| 36 | |
| 37 | foreach 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']) |
| 45 | endforeach |