Could you design a program that achieves the peak MIPS Milli
Could you design a program that achieves the peak MIPS (Millions of Instructions Per Second) rating for a computer? What might such a program look like? Discuss how well peak MIPS predicts actual performance.
Solution
The program with less branch instructions may achieve peak MIPS rating for a computer, whereas realistic workloads typically lead to significantly lower IPS values. Memory hierarchy also greatly affects processor performance, an issue barely considered in IPS calculations
The speed of a given CPU depends on many factors, such as the type of instructions being executed, the execution order and the presence of branch instructions (problematic in CPU pipelines). CPU instruction rates are different from clock frequencies, usually reported in Hz, as each instruction may require several clock cycles to complete or the processor may be capable of executing multiple independent instructions simultaneously. MIPS can be useful when comparing performance between processors made with similar architecture (e.g. Microchip branded microcontrollers). They are difficult to compare between differing CPU architectures.
For this reason, MIPS has become not a measure of instruction execution speed, but task performance speed compared to a reference.
