How do you calculate MIPS for an algorithm?
If your algorithm is 1000 instructions for that particular case, you'll end up with: 1000 instructions / (1/1000) seconds = 1000000 instructions per second = 1 MIPS.
How do you calculate MIPS from CPI?
Alternatively, divide the number of cycles per second (CPU) by the number of cycles per instruction (CPI) and then divide by 1 million to find the MIPS. For instance, if a computer with a CPU of 600 megahertz had a CPI of 3: 600/3 = 200; 200/1 million = 0.0002 MIPS.