checkasm: print bench runs when benchmarking

Helps make sense of the possible noise in the results.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Lynne 2024-05-21 17:03:14 +02:00 committed by Paul B Mahol
parent 590308ef40
commit 6c3a274901

View File

@ -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);