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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Lecture</strong> 20 - Per<strong>for</strong>mance Chapter - 4<br />

How to compare<br />

- 2 different architectures - Intel<br />

- Mac<br />

- 2 implementations of same instruction set – 486 & 586<br />

- 2 compilers <strong>for</strong> the same machine<br />

Page | 119<br />

1<br />

Per<strong>for</strong>mance = <br />

CPU time<br />

Seconds<br />

CPU time = <br />

Program<br />

Seconds Seconds cycles<br />

CPU time = = * <br />

Program Program cycles<br />

Rearrange the terms<br />

Cycles Seconds<br />

CPU time = * -(2)<br />

Program Cycles<br />

Another representation<br />

Seconds<br />

CPU time = <br />

Program<br />

Second Clock cycle Instructions<br />

= * * (3)<br />

Program Clock cycle Instructions<br />

Instruction Clock cycles Seconds<br />

= * * -(3)<br />

Program Instruction Clock cycles

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

Saved successfully!

Ooh no, something went wrong!