mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 12:09:58 +00:00
689309c4ac
Add unit test and benchmark test for crypto akcipher. Signed-off-by: lei he <helei.sig11@bytedance.com> Signed-off-by: zhenwei pi <pizhenwei@bytedance.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
36 lines
949 B
Meson
36 lines
949 B
Meson
|
|
qht_bench = executable('qht-bench',
|
|
sources: 'qht-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 += {
|
|
'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
|