Calculation of processor processing [closed]

2

Well, can you calculate the speed of a processor to execute one instruction and multiple instructions?

    
asked by anonymous 17.10.2015 / 23:39

1 answer

1

If you take the manual of a processor, it finds the number of clock cycles that any instruction takes to execute. You can find Intel processor manuals at link . / p> 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 execute.

Only this is in theory. In practice, accessing out-of-cache memory takes tens or hundreds of cycles to fetch that memory into the cache. Some processors can execute instructions in parallel, so the actual cost in cycles of a set of instructions is quite difficult to accurately predict.

    
18.10.2015 / 00:01