mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 18:44:58 -06:00
tests: Move benchmarks into a separate folder
Make it clear that these files are related to benchmarks by moving them into a new folder called "bench". Message-Id: <20210312092238.79509-1-thuth@redhat.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
da668aa15b
commit
3b472e71d5
9 changed files with 36 additions and 34 deletions
34
tests/bench/meson.build
Normal file
34
tests/bench/meson.build
Normal file
|
@ -0,0 +1,34 @@
|
|||
|
||||
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],
|
||||
}
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue