05.08.2014 Views

Lecture Notes for Computer Architecture II - St. Cloud State University

Lecture Notes for Computer Architecture II - St. Cloud State University

Lecture Notes for Computer Architecture II - St. Cloud State University

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

total amount of work done in a given time<br />

- response time<br />

time between the start & completion of task<br />

Per<strong>for</strong>mance = 1/CPU time<br />

Choosing bench mark programs to evaluate per<strong>for</strong>mance<br />

- best is to use application program<br />

- companies try to improve per<strong>for</strong>mance of bench mark using very specialized<br />

compiler optimization lead to misleading comparisons<br />

- per<strong>for</strong>mance measurements should be reproducible<br />

Page | 121<br />

Fallacy<br />

- Hardware independent<br />

Metrics predict per<strong>for</strong>mance<br />

- Synthetic bench marks predict per<strong>for</strong>mance<br />

Pitfalls<br />

- using instructions per second as a metric<br />

- using arithmetic mean, geometric mean of execution time<br />

- expecting the improvement in one aspect of a machine to increase per<strong>for</strong>mance<br />

Question 1<br />

We wish to compare the per<strong>for</strong>mance of two different machines: M1 and M2. The<br />

following measurements have been made on these machines:<br />

Progra<br />

m<br />

Time on<br />

M1<br />

Time on<br />

M2<br />

1 10 seconds 5 seconds<br />

2 3 seconds 4 seconds<br />

Which machine is faster <strong>for</strong> each program and by how much?<br />

Solution<br />

M2 is 10/5 times faster than M1<br />

M1 is 4/3 time faster than M2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!