1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

checkasm: motion: Make the benchmarks more stable

Don't use the last random offset, but a static one.

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Martin Storsjö 2022-07-12 23:44:42 +03:00
parent 02e7853fd9
commit 237730f0e0

View File

@ -79,7 +79,8 @@ static void test_motion(const char *name, me_cmp_func test_func)
break; 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); bench_new(NULL, img1, ptr, WIDTH, 8);
} }
} }