Processing calculation of the procesator

Asked

Viewed 108 times

2

Guys, it is possible to calculate the speed of a processor to execute one instruction and several instructions?

  • 1

    Depends on the oscillation speed of the clock and the processor architecture, also the strategies used to perform one or more tasks (pipeline type, among others), and also many other factors...

  • Hello Lexsander, welcome to [en.so]. I noticed that you had several questions closed recently, to increase your chances of getting a good answer I suggest you read the guide [Ask] and do a [tour].

1 answer

1

If you take the manual of a processor, you find the number of clock cycles that any instruction takes to execute. You can find Intel processor manuals on http://www.intel.com/content/www/us/en/processors/architectures-software-developer-manuals.html.

So in theory, if an instruction takes a cycle to run, and the processor has 2GHz, it would run 2 billion times that instruction per second, or each instruction would take 0.5ns to run.

Only that’s in theory. In practice, access to memory outside the cache takes tens or hundreds of cycles to fetch that memory into the cache. Some processors can run instructions in parallel, so the actual cost in cycles of an instruction set is quite difficult to predict accurately.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.