1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

checkasm: print bench runs when benchmarking

Helps make sense of the possible noise in the results.
This commit is contained in:
Lynne 2024-05-21 17:03:14 +02:00
parent b1adf6d1d0
commit d43e123837
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464

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