[FFmpeg-devel] [PATCH] checkasm: print bench runs when benchmarking

J. Dekker jdek at itanimul.li
Tue May 21 18:07:18 EEST 2024


Lynne via ffmpeg-devel <ffmpeg-devel at ffmpeg.org> writes:

> Helps make sense of the possible noise in the results.
> ---
>  tests/checkasm/checkasm.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/tests/checkasm/checkasm.c b/tests/checkasm/checkasm.c
> index 669f2be9c1..b1c175b95d 100644
> --- a/tests/checkasm/checkasm.c
> +++ b/tests/checkasm/checkasm.c
> @@ -892,6 +892,9 @@ int main(int argc, char *argv[])
>      fprintf(stderr, "checkasm: using random seed %u\n", seed);
>      av_lfg_init(&checkasm_lfg, seed);
>  
> +    if (state.bench_pattern)
> +        fprintf(stderr, "checkasm: bench runs %" PRIu64 " (1 << %i)\n", bench_runs, av_log2(bench_runs));
> +
>      check_cpu_flag(NULL, 0);
>      for (i = 0; cpus[i].flag; i++)
>          check_cpu_flag(cpus[i].name, cpus[i].flag);

LGTM.

-- 
jd


More information about the ffmpeg-devel mailing list