Answer the question
In order to leave comments, you need to log in
How, knowing the frequency of the processor, determine the speed of the function?
Hello!
A question. If I time the execution of a function on my computer, the frequency of the processor of which I know. Then with this information, can I calculate the execution time of the function on another computer, with a different frequency? The frequency of the other computer is known.
Answer the question
In order to leave comments, you need to log in
No
Run the same function on another computer several thousand times and get the average execution time
No. The processor, the runtime, are constantly optimizing the execution time based on a bunch of nuances, based on predictions. Even on the same hardware, you can only talk about some kind of average performance, running at different times you can get a result that differs by 2-3.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question