mirror of
https://github.com/qemu/qemu.git
synced 2024-11-23 19:03:38 +08:00
a06d9eddb0
Benchmark each acceleration function vs an aligned buffer of zeros. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
41 lines
1.1 KiB
Meson
41 lines
1.1 KiB
Meson
|
|
qht_bench = executable('qht-bench',
|
|
sources: 'qht-bench.c',
|
|
dependencies: [qemuutil])
|
|
|
|
executable('qtree-bench',
|
|
sources: 'qtree-bench.c',
|
|
dependencies: [qemuutil])
|
|
|
|
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 += {
|
|
'bufferiszero-bench': [],
|
|
'benchmark-crypto-hash': [crypto],
|
|
'benchmark-crypto-hmac': [crypto],
|
|
'benchmark-crypto-cipher': [crypto],
|
|
'benchmark-crypto-akcipher': [crypto],
|
|
}
|
|
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
|