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

Lynne dev at lynne.ee
Tue May 21 18:50:21 EEST 2024


On 21/05/2024 17:07, J. Dekker wrote:
> 
> 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.
> 

Thanks, pushed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xA2FEA5F03F034464.asc
Type: application/pgp-keys
Size: 624 bytes
Desc: OpenPGP public key
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20240521/cf2b7f5b/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20240521/cf2b7f5b/attachment.sig>


More information about the ffmpeg-devel mailing list