How many Instructions does the Intel Pentium 4 Processor 1GHz do Per Second
can anybody give me a formular
please help
Printable View
How many Instructions does the Intel Pentium 4 Processor 1GHz do Per Second
can anybody give me a formular
please help
It's a long time since I had any doings with the innards of processors, but as far as I can remember there's no 'one' answer to that.
You would need the table of cpu instructions which shows how many processor cycles each instruction takes. Then, knowing the speed of the processor, you would know how many of each instruction could be undertaken per second. You just need to divide the processor speed by the cycles per instruction.
Check the units:
(cycles/sec) / (cycles/instr)
= (c/s) * (instr/c)
= (c * instr) / (s * c)
=instr/s
But from a practical point of view that doesn't help an awful lot, since the stream of instructions to be processed is a mish-mash not a stream of the same instruction repeated.
edit... PS, bear in mind that the above is to do with CPU instructions, not (eg) vb functions. I've no clue how to relate a (eg) vb multiply to what cpu instructions actually get carried out under the hood.