1 / 21

Measuring Computer Performance: Metrics, Benchmarks, and Comparison

This handout discusses the definition of performance, performance metrics, benchmarks, alternative performance metrics, and performance comparison between different computers. It also explores the concept of execution time and the use of benchmarks to measure performance.

dunkle
Download Presentation

Measuring Computer Performance: Metrics, Benchmarks, and Comparison

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CSE2021: Computer Organization Instructor: Dr. Amir Asif Department of Computer Science York University Handout # 2: Measuring Performance Topics: 1. Performance: Definition 2. Performance Metrics: CPU Execution Time and Throughput 3. Benchmarks: SPEC’95 4. Alternative Performance Metrics: MIPS and FLOPS Patterson: Sections 1.4 – 1.9.

  2. Analogy with Commercial Airplanes What does it mean do say that one computer is better than another? • To know which of the four planes exhibits the best performance, we need to define a criteria for measuring “performance”. Performance Criteria:Winner: Speed BAC/Scud ConcordeCapacity Boeing 747Range Douglas DC-8-50 Throughput Airbus A3xx

  3. Computer Performance (1) • Performance of a computer is based on the following criteria: • Response/Execution Time: Elapsed time between the start and the end of one task. • Throughput: Total number of tasks finished in a given interval of time. • An IT manager will be interested in having a higher overall throughput while a computer user will like to have a lower execution time for his task. • Using execution time as the criteria, the performance of a machine X is defined as • Performance ratio (n) between two machines X and Y is defined as

  4. Computer Performance (2) Activity 1: If machine X runs a program in 30 seconds and machine Y runs the same program in 45 seconds, how much faster is X than Y? Activity 2: Discuss which of the following two options is suited to enhance performance from a user’s perspective: (a) Upgrading a machine to a faster CPU (b) Adding additional processors to the machine s.t. multiple processors are used for different tasks. Repeat for an IT manager?

  5. What is Execution Time (1)? • Elapsed Time/Response Time/Wall Clock Time: is defined as the clock time it takes from the start to the end of a program or a task • Since computer is a timeshared machine (running several programs simultaneously), the elapsed time will be dependent on the number and complexity of other programs running on the machine. • CPU Time: is the execution time that the CPU spends on completing a task • CPU time does not include time spent on running other programs or waiting for the I/O to become free. • CPU time can be further broken down into: (a) User CPU time: CPU time spent to execute the measured program (b) System CPU time: CPU time spent in the operating system performing tasks on behalf of the measured program • Command time in Unix can be used to determine the elapsed time and CPU time for a particular programSyntax: time <name_of_program>Result:

  6. What is Execution Time (2)? Performance based on User CPU time is called the CPU performance Performance based on System time is called the system performance Vendors specify the speed of a computer in terms of clock cycles. For example, a 1GHz Pentium is generally believed to be faster than a 500MHz Pentium. We define the clock cycles formally next. Multiples defined:

  7. Binary 1 Binary 0 1 cycle Leadingedge Trailingedge Clock (1) Clock Signal • All events in a computer are synchronized to the clock signal • Clock signal is therefore received by every HW component in a computer • Clock cycle time: is defined as the duration of 1 cycle of the clock signal • Clock cycle rate: is the inverse of the clock cycle time. • CPU execution time is therefore defined as

  8. Clock (2) • Timing Programs generally return the average number of clock cycle needed per instruction (denoted by CPI) Activity 3: For a CPU, instructions from a high-level language are classified in 3 classes Two SW implementations with the following instruction counts are being considered Which implementation executes the higher number of instructions? Which runs faster? What is the CPI count for each implementation?

  9. Performance Comparison (1) To compare performance between two computers, Select a set of programs that represent the workload Run these programs on each computer Compare the average execution time of each computer At time the geometric mean is used. Activity 4: Based on the arithmetic and geometric means execution time, which of the two computer is faster?

  10. Performance Comparison: Benchmarks (2) • Benchmarks: are standard programs chosen to compare performance between different computers. • Benchmarks are generally chosen from the applications that a user would typically use the computer to execute. • Benchmarks can be classified in three categories: • Real applications reflecting the expected workload, e.g., multimedia, computer visualization, database, or macromedia director applications • Small benchmarks are specialized code segments with a mixture of different types of instructions • Benchmark suites containing a standard set of real programs and applications. A commonly used suite is SPEC (System Performance Evaluation Cooperative) with different versions available, e.g., SPEC89, SPEC’92, SPEC’95, SPEChpc96, SPEC CPU2006 and SPECINTC2006 suites.

  11. Performance Comparison: SPEC Suite (2) • SPEC’95 suite has a total of 18 programs (integer and floating point). However, SPEC CPU2000 has a total of 32 programs • SPEC ratio for a program is defined as the ratio of the execution time of the program on a Sun Ultra 5/10(300 MHz processor) to the execution time on the measured machine. • CINT2000 is the geometric mean of the SPEC ratios obtained from the integer programs. The geometric mean is defined as • CFP2000 is the geometric mean of the SPEC ratios from the floating-point programs Activity 5: Complete the following table to predict the performance of machines A and B

  12. Performance Comparison: CINT2006 for Opteron X4 2356 (3) High cache miss rates

  13. Improving Performance Performance of a CPU can be improved by: Increasing the clock rate (decreasing the clock cycle time) Enhancements in the Compiler to decrease the instruction count in a program Improvement in the CPU to decrease the clock cycle per instruction (CPI) Unfortunately factors (1 – 3) are not independent. For example, if you increase the clock frequency then the CPI may also increase.

  14. Power Trends (1) • One way of enhancing performance is to increase clock rate (implying a reduction in clock cycle time) . • A consequence of increasing clock rate is an increase in power dissipation.

  15. Power Trends (2) • Dynamic power dissipation is computed from the expression • In the previous figure, note that when clock rates have increased by a factor of 1000 (25 to 2667), the power dissipation only increased by a factor of 20 (4.9 to 95). • The above is largely a consequence of the operating voltage in CMOS technology going down from 5V to 1V. • Activity: What is the impact on dynamic power dissipation if a new processor reduces the capacitive load, voltage, and clock frequency all by a factor of 15%?

  16. Uniprocessor Performance Constrained by power, instruction-level parallelism, memory latency

  17. SPEC Power Benchmark • SPECpower reports power consumption of servers at different workloads, divided by 10% increments, over a period of time.

  18. PITFALL: Amdahl’s Law (1) • Improving an aspect of a computer and expecting a proportional improvement in overall performance • Suppose a program runs in 100s on a computer with multiply operations responsible for 80% of the time. How much should the speed of multiplication be improved to make the program run twice faster? Five times faster? • Solution: • For 2 times faster, the speed of multiplication should be improved by a factor of 8/3. • Five times faster is not possible.

  19. PITFALL: MIPS as a Performance Metric (2) Do not use MIPS (million instructions per second) as a performance metric Activity 6: For a CPU, instructions from a high-level language are classified in 3 classes Two SW implementations with the following instruction counts are being considered Assuming that the clock rate is 500 MHz, which code sequence will be run faster based on (a) MIPS and (b) execution time.

  20. PITFALLS: Do Not’s (3) Do not use MFLOPS (Million Floating point operations per second) as a performance metric Do not use PEAK Performance as a performance metric Example: I860: @50MHz: 100MFLOPS and 150 MOPS MIPS @R3000: 16MFLOPS and 33 MOPS Running SPEC benchmarks, R3000 was 15% faster in execution time based on the geometric mean

  21. PITFALLS: Do Not’s (4) • Do not use synthetic benchmarks (vendor created) to predict performance • Commonly used synthetic benchmarks are Whetstone and Dhrystone • Whetstone was based on Algol in an engineering environment and later converted to Fortran • Dhrystone was written in Ada for systems programming environments and later converted to C • Such synthetic benchmarks do not reflect the applications typically run by a user • Do not use the arithmetic mean of execution time to predict performance. Geometric means provide better estimates.

More Related