CS 61C (Fall 2007)

Quiz 38

Four questions, submit as "quiz38".  Due 2:45pm before lecture 12/3/2007.


We wish to compare the performance of two different computers C1 and C2. The following measurements have been made:

ProgramTime on C1Time on C2
P12.0s1.5s
P25.0s10.0s

1.

Which computer is faster for P1?

2.

Which computer is faster for P2?





Suppose you want to run a program P with 7.5*109 instructions on a 5GHz mcahine with a CPI of 0.8.

3.

What is the expected CPU time (answer in seconds)?

4.

When you run P, it takes 3 seconds of wall clock time to complete. What is the percentage of CPU time that P received?