1*3b472e71SThomas Huth 2*3b472e71SThomas Huthqht_bench = executable('qht-bench', 3*3b472e71SThomas Huth sources: 'qht-bench.c', 4*3b472e71SThomas Huth dependencies: [qemuutil]) 5*3b472e71SThomas Huth 6*3b472e71SThomas Huthexecutable('atomic_add-bench', 7*3b472e71SThomas Huth sources: files('atomic_add-bench.c'), 8*3b472e71SThomas Huth dependencies: [qemuutil], 9*3b472e71SThomas Huth build_by_default: false) 10*3b472e71SThomas Huth 11*3b472e71SThomas Huthexecutable('atomic64-bench', 12*3b472e71SThomas Huth sources: files('atomic64-bench.c'), 13*3b472e71SThomas Huth dependencies: [qemuutil], 14*3b472e71SThomas Huth build_by_default: false) 15*3b472e71SThomas Huth 16*3b472e71SThomas Huthbenchs = {} 17*3b472e71SThomas Huth 18*3b472e71SThomas Huthif have_block 19*3b472e71SThomas Huth benchs += { 20*3b472e71SThomas Huth 'benchmark-crypto-hash': [crypto], 21*3b472e71SThomas Huth 'benchmark-crypto-hmac': [crypto], 22*3b472e71SThomas Huth 'benchmark-crypto-cipher': [crypto], 23*3b472e71SThomas Huth } 24*3b472e71SThomas Huthendif 25*3b472e71SThomas Huth 26*3b472e71SThomas Huthforeach bench_name, deps: benchs 27*3b472e71SThomas Huth exe = executable(bench_name, bench_name + '.c', 28*3b472e71SThomas Huth dependencies: [qemuutil] + deps) 29*3b472e71SThomas Huth benchmark(bench_name, exe, 30*3b472e71SThomas Huth args: ['--tap', '-k'], 31*3b472e71SThomas Huth protocol: 'tap', 32*3b472e71SThomas Huth timeout: 0, 33*3b472e71SThomas Huth suite: ['speed']) 34*3b472e71SThomas Huthendforeach 35