[Ffmpeg-devel] [PATCH] lowres chroma bug
Oleg Metelitsa
oleg
Fri Feb 9 08:58:44 CET 2007
Hello,
TP> I have no idea how to benchmark that function. Adding an rdtsc to the code
TP> will totally change the register allocation since it clobbers eax and edx.
I sometimes compare patched function speed in a stupid way. It is
always possible to write main() application, which calls tested
function i.e. 1000 times. Main application can be written such a way
to make cache memory operation very similar to real life. After that
it is easy to benchmark 1000 calls of function instead of only 1.
Oleg
More information about the ffmpeg-devel
mailing list