Performance and execution time have an inverse relationship.
Consider the following relation:
Thus, if the execution time of a program decreases (i.e. the program gets faster), then the performance increases.
The following relations can be used to determine the performance of a program:
Examples
The following examples are unchecked and may be wrong.
(a) If computer A runs a program in 10 seconds and computer B runs the same program in 15 seconds, how much faster is A than B?
(b) Our favorite program runs in 10 seconds on computer A, which has a 2 GHz clock. We are trying to help a compute rdesigned build a computer, B, which will run this program in 6 seconds. THe designed has determined that if computer B has 1.2 times as many clock cycles as computer A. > What clock rate shoud we tell the deigner to target?
(c)
(d)
Program 1 has 5 instructions
Program 2 has 6 instructions
(e)
a.
b.