Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH] checkasm: print bench runs when benchmarking
@ 2024-05-21 15:04 Lynne via ffmpeg-devel
  2024-05-21 15:07 ` J. Dekker
  0 siblings, 1 reply; 3+ messages in thread
From: Lynne via ffmpeg-devel @ 2024-05-21 15:04 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: Lynne

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);
-- 
2.43.0.381.gb435a96ce8
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [FFmpeg-devel] [PATCH] checkasm: print bench runs when benchmarking
  2024-05-21 15:04 [FFmpeg-devel] [PATCH] checkasm: print bench runs when benchmarking Lynne via ffmpeg-devel
@ 2024-05-21 15:07 ` J. Dekker
  2024-05-21 15:50   ` Lynne via ffmpeg-devel
  0 siblings, 1 reply; 3+ messages in thread
From: J. Dekker @ 2024-05-21 15:07 UTC (permalink / raw)
  To: ffmpeg-devel


Lynne via ffmpeg-devel <ffmpeg-devel@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
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [FFmpeg-devel] [PATCH] checkasm: print bench runs when benchmarking
  2024-05-21 15:07 ` J. Dekker
@ 2024-05-21 15:50   ` Lynne via ffmpeg-devel
  0 siblings, 0 replies; 3+ messages in thread
From: Lynne via ffmpeg-devel @ 2024-05-21 15:50 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: Lynne


[-- Attachment #1.1.1.1: Type: text/plain, Size: 936 bytes --]

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

[-- Attachment #1.1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 637 bytes --]

[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

[-- Attachment #2: Type: text/plain, Size: 251 bytes --]

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-05-21 15:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-21 15:04 [FFmpeg-devel] [PATCH] checkasm: print bench runs when benchmarking Lynne via ffmpeg-devel
2024-05-21 15:07 ` J. Dekker
2024-05-21 15:50   ` Lynne via ffmpeg-devel

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git