Skip to content

Commit

Permalink
Restored YMF262 benchmarks
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Zoppi <texzk@email.it>
  • Loading branch information
TexZK committed Apr 6, 2024
1 parent 324a316 commit a63b1d8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
print(f'Entry: {1+index:3d} / {len(lines):3d}')

info = json.loads(line)
name = info['name']
if not name.startswith('ymf262_'):
continue

cmdline = info['command']
score = os.path.basename(cmdline[-1])
Expand Down
28 changes: 14 additions & 14 deletions benchmarks/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -193,17 +193,17 @@ foreach intr_name : ['dummy', 'none', 'x86_sse41', 'x86_avx', 'x86_avx2', 'arm_n
if have_intr
test_suite = 'ymf262_@0@_play'.format(intr_name)
foreach score_path : aymo_ymf262_benchmark_suite
# benchmark(
# ('_'.join([test_suite, fs.name(score_path)])).underscorify(),
# aymo_ymf262_play_exe,
# args: [
# '--benchmark',
# '--cpu-ext', intr_name,
# '--loops', '@0@'.format(opt_benchmark_score_loops),
# score_path
# ],
# timeout: 0
# )
benchmark(
('_'.join([test_suite, fs.name(score_path)])).underscorify(),
aymo_ymf262_play_exe,
args: [
'--benchmark',
'--cpu-ext', intr_name,
'--loops', '@0@'.format(opt_benchmark_score_loops),
score_path
],
timeout: 0
)
endforeach
endif
endforeach
Expand All @@ -213,11 +213,11 @@ endforeach
# Strictly run:
# meson test --benchmark
run_target(
'benchmark-report',
'benchmark-report-ymf262',
command: [
python_exe,
join_paths(top_srcdir, 'benchmarks', 'export_report.py'),
join_paths(top_srcdir, 'benchmarks', 'export_report_ymf262.py'),
join_paths(top_builddir, 'meson-logs', 'testlog.json'),
join_paths(top_builddir, 'benchmarks', 'report.csv')
join_paths(top_builddir, 'benchmarks', 'report_ymf262.csv')
]
)

0 comments on commit a63b1d8

Please sign in to comment.