K
K
kudim2017-09-30 23:02:04
C++ / C#
kudim, 2017-09-30 23:02:04

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

2 answer(s)
S
sim3x, 2017-09-30
@kudim

No
Run the same function on another computer several thousand times and get the average execution time

E
eRKa, 2017-09-30
@kttotto

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 question

Ask a Question

731 491 924 answers to any question