13b472e71SThomas Huth 23b472e71SThomas Huthqht_bench = executable('qht-bench', 33b472e71SThomas Huth sources: 'qht-bench.c', 43b472e71SThomas Huth dependencies: [qemuutil]) 53b472e71SThomas Huth 63b472e71SThomas Huthexecutable('atomic_add-bench', 73b472e71SThomas Huth sources: files('atomic_add-bench.c'), 83b472e71SThomas Huth dependencies: [qemuutil], 93b472e71SThomas Huth build_by_default: false) 103b472e71SThomas Huth 113b472e71SThomas Huthexecutable('atomic64-bench', 123b472e71SThomas Huth sources: files('atomic64-bench.c'), 133b472e71SThomas Huth dependencies: [qemuutil], 143b472e71SThomas Huth build_by_default: false) 153b472e71SThomas Huth 163b472e71SThomas Huthbenchs = {} 173b472e71SThomas Huth 183b472e71SThomas Huthif have_block 193b472e71SThomas Huth benchs += { 203b472e71SThomas Huth 'benchmark-crypto-hash': [crypto], 213b472e71SThomas Huth 'benchmark-crypto-hmac': [crypto], 223b472e71SThomas Huth 'benchmark-crypto-cipher': [crypto], 23*689309c4SLei He 'benchmark-crypto-akcipher': [crypto], 243b472e71SThomas Huth } 253b472e71SThomas Huthendif 263b472e71SThomas Huth 273b472e71SThomas Huthforeach bench_name, deps: benchs 283b472e71SThomas Huth exe = executable(bench_name, bench_name + '.c', 293b472e71SThomas Huth dependencies: [qemuutil] + deps) 303b472e71SThomas Huth benchmark(bench_name, exe, 313b472e71SThomas Huth args: ['--tap', '-k'], 323b472e71SThomas Huth protocol: 'tap', 333b472e71SThomas Huth timeout: 0, 343b472e71SThomas Huth suite: ['speed']) 353b472e71SThomas Huthendforeach 36