Ratio Games
Ratio Games
11-1
Overview
11-2
Case Study 11.1: 6502 vs. 8080
1. Ratio of Totals
Conclusion: 6502 is worse. It takes 4.7% more time than 8080.
11-3
6502 vs. 8080 (Cont)
2. 6502 as the base: 3. 8080 as the base:
11-4
Case Study 11.2: RISC vs. CISC
11-5
RISC vs. CISC (Cont)
Conclusion: Z8002 has the largest code size and that it takes
18% more code than RISC-I. [Peterson and Sequin 1982]
©2010 Raj Jain www.rajjain.com
11-6
Using an Appropriate Ratio Metric
Example:
1. Throughput: A is better
2. Response Time: A is worse
3. Power: A is better
©2010 Raj Jain www.rajjain.com
11-7
Using Relative Performance Enhancement
Example: Two floating point accelerators
11-8
Ratio Games with Percentages
Example: Tests on two systems
System A:
System B:
11-9
Percentages (Cont)
11-10
Ratio Games Guidelines
1. If one system is better on all benchmarks, contradicting
conclusions can not be drawn by any ratio game technique
11-11
Guidelines (cont)
2. Even if one system is better than the other on all benchmarks,
a better relative performance can be shown by selecting
appropriate base.
¾ In the previous example, System A is 40% better than
System B using raw data, 43% better using system A as a
base, and 42% better using System B as a base.
3. If a system is better on some benchmarks and worse on others,
contracting conclusions can be drawn in some cases. Not in all
cases.
4. If the performance metric is an LB metric, it is better to use
your system as the base
5. If the performance metric is an HB metric, it is better to use
your opponent as the base
6. Those benchmarks that perform better on your system should
be elongated and those that perform worse should be
shortened
©2010 Raj Jain www.rajjain.com
11-12
Numerical Conditions for Ratio Games
Raw Data: A is better than B iff
11-13
Numerical Conditions (Cont)
With B as the base: A is better than B iff
11-14
Numerical Conditions (Cont)
11-15
Summary
11-16
Exercise 11.1
The following table shows execution times of three
benchmarks I, J, and K on three systems A, B, and C.
Use ratio game techniques to show the superiority of
various systems.
11-17
Exercise 11.2
Derive conditions necessary for you to be able to use
the technique of combined percentages to your
advantage.
11-18
Homework
Read chapter 11
Submit answer to Exercise 11.1
11-19