CPUs and architecture

Approximately how many instructions per second can a processor with a 2 GHz clock and an average CPI (clocks per instruction) of 0.5 execute?

  1. A1 billion instructions
  2. B4 billion instructions
  3. C100 million instructions
Show answer and explanation

Answer: B. 4 billion instructions

There are 2×10⁹ clocks per second and each instruction averages 0.5 clocks, so2×1090.5=4×1092×10⁹ ÷ 0.5 = 4×10⁹—4 billion instructions. CPI below 1 reflects superscalar execution of multiple instructions per clock. Performance is execution time = instruction count × CPI ÷ frequency, so no single one of the three factors suffices for comparison.

Related calculators

Books on CPUs and architecture Ad

As an Amazon Associate I earn from qualifying purchases.

More CPUs and architecture questions

  1. If 90% of a program can be parallelized, what is the theoretical maximum speedup when it runs on an unlimited number of processors?
  2. Which scheme performs the same operation on multiple data items simultaneously with a single instruction?
  3. Which CPU configuration combines high-performance cores and power-efficient cores and uses them according to the workload?
  4. Which technique examines instruction dependencies and executes ready instructions in an order different from the program order to improve performance?
  5. Which CPU mechanism temporarily suspends the current task to give priority to handling requests such as those from external devices?

Comparisons in this topic