From 237730f0e0422fd46ffaf7e724a68eb1e6459645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 12 Jul 2022 23:44:42 +0300 Subject: [PATCH] checkasm: motion: Make the benchmarks more stable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Don't use the last random offset, but a static one. Signed-off-by: Martin Storsjö --- tests/checkasm/motion.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/checkasm/motion.c b/tests/checkasm/motion.c index 0112822174..631a9ed29f 100644 --- a/tests/checkasm/motion.c +++ b/tests/checkasm/motion.c @@ -79,7 +79,8 @@ static void test_motion(const char *name, me_cmp_func test_func) break; } } - // benchmark with the final value of ptr + // Test with a fixed offset, for benchmark stability + ptr = img2 + 3 * WIDTH + 3; bench_new(NULL, img1, ptr, WIDTH, 8); } }