Question
We wish to compare the performance of two different machines: M1 and M2. The following measurements have been made on these machines: Program Time on
We wish to compare the performance of two different machines: M1 and M2. The following measurements have been made on these machines:
Program | Time on M1 | Time on M2 |
1 | 4 seconds | 2.5 seconds |
2 | 6 seconds | 12 seconds |
a) Which computer is faster for each program, and how many times as fast is it?
b) If the following additional measurements were made:
Program | Instructions executed on M1 | Instructions executed on M2 |
1 | 5x 109 | 6x 109 |
and the clock rates of machine M1 and M2 are 2.5GHz and 2GHz respectively, find the clock cycles per instruction (CPI) for program 1 on each computer.
c) Assuming that CPI for program 2 on each computer is the same as the CPI for program 1 found in b), find the instruction count for program 2 running on each computer using the execution times from the first table.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started