On Fri, Apr 25, 2025 at 9:28 AM Patrick Steinhardt <ps@xxxxxx> wrote: > > Wire up benchmarks in Meson. The setup is mostly the same as how we wire > up our tests. The only difference is that benchmarks get wired up via > the `benchmark()` option instead of via `test()`, which gives them a bit > of special treatment: > > - Benchmarks never run in parallel. > > - Benchmarks aren't run by default when tests are executed. > > - Meson does not inject the `MALLOC_PERTURB` environment variable. [...] > diff --git a/meson.build b/meson.build > index 410bbf93dad..2cd05a9b1ba 100644 > --- a/meson.build > +++ b/meson.build > @@ -70,6 +70,12 @@ > # # Execute single test interactively such that features like `debug ()` work. > # $ meson test -i --test-args='-ix' t1400-update-ref > # > +# # Execute all benchmarks. > +# $ meson test -i --benchmark > +# > +# # Execute single benchmark. > +# $ meson test -i --benchmark p0000-* > +# > # Test execution is parallelized by default and scales with the number of > # processor cores available. You can change the number of processes by passing > # the `-jN` flag to `meson test`. Doesn't the above give the impression that benchmarks are also parallelized by default while the commit message says they are not?