2021-03-12 17:22:38 +08:00
|
|
|
|
|
|
|
qht_bench = executable('qht-bench',
|
|
|
|
sources: 'qht-bench.c',
|
|
|
|
dependencies: [qemuutil])
|
|
|
|
|
2023-12-13 18:30:50 +08:00
|
|
|
executable('qtree-bench',
|
|
|
|
sources: 'qtree-bench.c',
|
|
|
|
dependencies: [qemuutil])
|
2023-02-06 00:37:57 +08:00
|
|
|
|
2021-03-12 17:22:38 +08:00
|
|
|
executable('atomic_add-bench',
|
|
|
|
sources: files('atomic_add-bench.c'),
|
|
|
|
dependencies: [qemuutil],
|
|
|
|
build_by_default: false)
|
|
|
|
|
|
|
|
executable('atomic64-bench',
|
|
|
|
sources: files('atomic64-bench.c'),
|
|
|
|
dependencies: [qemuutil],
|
|
|
|
build_by_default: false)
|
|
|
|
|
|
|
|
benchs = {}
|
|
|
|
|
|
|
|
if have_block
|
|
|
|
benchs += {
|
2024-02-17 07:59:36 +08:00
|
|
|
'bufferiszero-bench': [],
|
2021-03-12 17:22:38 +08:00
|
|
|
'benchmark-crypto-hash': [crypto],
|
|
|
|
'benchmark-crypto-hmac': [crypto],
|
|
|
|
'benchmark-crypto-cipher': [crypto],
|
2022-05-25 17:01:16 +08:00
|
|
|
'benchmark-crypto-akcipher': [crypto],
|
2021-03-12 17:22:38 +08:00
|
|
|
}
|
|
|
|
endif
|
|
|
|
|
|
|
|
foreach bench_name, deps: benchs
|
|
|
|
exe = executable(bench_name, bench_name + '.c',
|
|
|
|
dependencies: [qemuutil] + deps)
|
|
|
|
benchmark(bench_name, exe,
|
|
|
|
args: ['--tap', '-k'],
|
|
|
|
protocol: 'tap',
|
|
|
|
timeout: 0,
|
|
|
|
suite: ['speed'])
|
|
|
|
endforeach
|