I had a routine that worked well. However, I had to make changes to it. The change improved routine accuracy, but hurt performance.
A subprogram is a lot of mathematical calculations and is probably related to the CPU (I still have to do more rigorous tests on this, but I'm 99% sure). It is written in C ++ (compiler - Borland C ++ 6).
I want to measure the performance of a routine now, at first I thought about measuring the runtime, but this is a kind of erroneous approach, in my opinion, since there can be many more things.
Then I came across this topic: Methods for measuring application performance - stack overflow . I liked the idea of ​​measuring through MFlops.
My boss suggested trying to use some kind of measurement with the processor cycles, so the tests will be machine independent, however I think this approach gets into MFlops testing.
In my opinion, measuring both things (runtime and MFlops) is the way to go, but I would like to hear from stackoverflow experts what you guys think.
How can I measure the performance of a subroutine called CPU link?
source share