mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
meson: convert the speed tests
Use meson benchmark() for them, adjust mtest2make.py for that. A new target "make bench" can be used to run all benchmarks. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20200828110734.1638685-14-marcandre.lureau@redhat.com> [Rewrite mtest2make part. - Paolo] Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
24441f912e
commit
9ed7247a59
4 changed files with 29 additions and 13 deletions
|
@ -111,6 +111,8 @@ test_deps = {
|
|||
'test-qht-par': qht_bench,
|
||||
}
|
||||
|
||||
benchs = {}
|
||||
|
||||
if have_block
|
||||
tests += {
|
||||
'test-coroutine': [testblock],
|
||||
|
@ -167,6 +169,11 @@ if have_block
|
|||
if 'CONFIG_NETTLE' in config_host or 'CONFIG_GCRYPT' in config_host
|
||||
tests += {'test-crypto-pbkdf': [io]}
|
||||
endif
|
||||
benchs += {
|
||||
'benchmark-crypto-hash': [crypto],
|
||||
'benchmark-crypto-hmac': [crypto],
|
||||
'benchmark-crypto-cipher': [crypto],
|
||||
}
|
||||
endif
|
||||
|
||||
if have_system
|
||||
|
@ -226,6 +233,14 @@ foreach test_name, extra: tests
|
|||
suite: ['unit'])
|
||||
endforeach
|
||||
|
||||
foreach bench_name, deps: benchs
|
||||
exe = executable(bench_name, bench_name + '.c',
|
||||
dependencies: [qemuutil] + deps)
|
||||
benchmark(bench_name, exe,
|
||||
args: ['--tap', '-k'],
|
||||
protocol: 'tap',
|
||||
suite: ['speed'])
|
||||
endforeach
|
||||
|
||||
if have_tools and 'CONFIG_VHOST_USER' in config_host
|
||||
executable('vhost-user-bridge',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue