Skip to content

Commit

Permalink
checkasm: motion: Make the benchmarks more stable
Browse files Browse the repository at this point in the history
Don't use the last random offset, but a static one.

Signed-off-by: Martin Storsjö <martin@martin.st>
  • Loading branch information
mstorsjo committed Jul 16, 2022
1 parent 02e7853 commit 237730f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/checkasm/motion.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 237730f

Please sign in to comment.