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>
pull/388/head
Martin Storsjö 3 years ago
parent 02e7853fd9
commit 237730f0e0
  1. 3
      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);
}
}

Loading…
Cancel
Save