Hi, this small patch series implements support for running our benchmarks in "t/perf" via Meson. The series does not aim to replace "t/perf/run", which is more fully-featured and allows running benchmarks against multiple different trees. Instead, this series only allows running the benchmarks against the current tree. Users are thus expected to continue using "t/perf/run" for more advanced usecases. Changes in v2: - Adapt "aggregate.perl" to use a "/usr/bin/env perl" shebang. - Link to v1: https://lore.kernel.org/r/20250331-pks-meson-benchmarks-v1-0-b2ace85616a3@xxxxxx Thanks! Patrick --- Patrick Steinhardt (5): t/perf: fix benchmarks with alternate repo formats t/perf: use configured PERL_PATH t/perf: fix benchmarks with out-of-tree builds meson: wire up benchmarks meson: wire up benchmarking options meson.build | 7 +++-- meson_options.txt | 6 ++++ t/meson.build | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++ t/perf/aggregate.perl | 2 +- t/perf/perf-lib.sh | 32 ++++++++++++++++++--- t/perf/run | 4 +-- 6 files changed, 118 insertions(+), 10 deletions(-) Range-diff versus v1: 1: fd734280c1d = 1: 844e8bdf81d t/perf: fix benchmarks with alternate repo formats 2: 89a011eec63 ! 2: d950c828933 t/perf: use configured PERL_PATH @@ Commit message location. Use "PERL_PATH" to execute Perl scripts, which makes them work on more - esoteric systems like NixOS. + esoteric systems like NixOS. Furthermore, adapt the shebang to use + env(1) to execute Perl so that users who have Perl in PATH, but in a + non-standard location can execute the script directly. Signed-off-by: Patrick Steinhardt <ps@xxxxxx> + ## t/perf/aggregate.perl ## +@@ +-#!/usr/bin/perl ++#!/usr/bin/env perl + + use lib '../../perl/build/lib'; + use strict; + ## t/perf/perf-lib.sh ## @@ t/perf/perf-lib.sh: test_perf_ () { else 3: efecbd86cd6 = 3: dc1adf62a86 t/perf: fix benchmarks with out-of-tree builds 4: feeaaae3ec1 = 4: 8528a775395 meson: wire up benchmarks 5: fc594fc3dc5 = 5: c8a4d0b354e meson: wire up benchmarking options --- base-commit: 683c54c999c301c2cd6f715c411407c413b1d84e change-id: 20250328-pks-meson-benchmarks-a8fac5f69467