Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
18 Cards in this Set
- Front
- Back
Performance |
1 / Execution time |
|
Two methods of calculating execution time for multi-testing programs. |
Average of execution times |
|
Amdahl's Law |
A fundamental law used to quantify performance improvements in computer design. |
|
Speed up |
Performance with enchancment / speedup >= 1 |
|
Fractional Enhancement |
fraction of thecomputation time in the original machine thatcan be converted to take advantage of theenhancement. FE <= 1 Example: |
|
What is speedup enhancement (SE)? |
How much faster the program would run if the enhanced mode was used for the entire program
Example: |
|
How do you calculate the new execution time? |
ET(new) = ET(old) x [(1-FE) + FE/SE] |
|
How do you calculate the overall speedup? |
ET(old)/ET(new) = 1/ (1 - FE) + FE/SE |
|
Example A CPU is usable 40% of the total execution time;• The enhanced CPU runs 10 times faster; • What is the overall speedup of the new machine?FE = 0.4, SE = 10 |
1 / (1-0.4) + 0.4/10 |
|
CPU time |
CPU clock cycles for a program / clock rate |
|
CPI: |
CPU clock cycles for a program / IC |
|
Clock rate |
1/clock cycle time |
|
CPU time |
IC x CPI / clock rate
|
|
What three things is CPU performance dependant on? |
- Clock rate |
|
Total CPU clock cycles |
SUMOF = CPI x IC |
|
Instruction count |
CPI = (SUMOF CPI x IC) / IC |
|
Considering two alternatives for conditional branchinstructions - Suppose: clock cycle time of CPU A is (1) 1.25 times faster (2)1.1 times faster than that of CPU B. |
CPI(a) = (0.2 x 2) + (0.8 x 1) / 1= 1.2 |
|
|
|