11.01.2015 Views

How to Benchmark Code Execution Times on Intel IA-32 and IA-64 ...

How to Benchmark Code Execution Times on Intel IA-32 and IA-64 ...

How to Benchmark Code Execution Times on Intel IA-32 and IA-64 ...

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.

<str<strong>on</strong>g>How</str<strong>on</strong>g> <str<strong>on</strong>g>to</str<strong>on</strong>g> <str<strong>on</strong>g>Benchmark</str<strong>on</strong>g> <str<strong>on</strong>g>Code</str<strong>on</strong>g> <str<strong>on</strong>g>Executi<strong>on</strong></str<strong>on</strong>g> <str<strong>on</strong>g>Times</str<strong>on</strong>g> <strong>on</strong> <strong>Intel</strong> ® <strong>IA</strong>-<strong>32</strong><br />

<strong>and</strong> <strong>IA</strong>-<strong>64</strong> Instructi<strong>on</strong> Set Architectures<br />

Figure 8. Variance Behavior Graph 8<br />

graph8<br />

clock cycles<br />

34<br />

<strong>32</strong><br />

30<br />

28<br />

26<br />

24<br />

22<br />

20<br />

18<br />

16<br />

14<br />

12<br />

10<br />

8<br />

6<br />

4<br />

2<br />

0<br />

0 100 200 300 400 500 600 700 800 900 1000<br />

ensembles<br />

variance<br />

3.3.2 Resoluti<strong>on</strong> with the Alternative Method<br />

According <str<strong>on</strong>g>to</str<strong>on</strong>g> what we did in Secti<strong>on</strong> 3.3.1, we run the same test using the<br />

alternative benchmarking method presented in Secti<strong>on</strong> 3.2.3. The resulting kernel<br />

log is as follows:<br />

loop_size:0 >>>> variance(cycles): 3; max_deviati<strong>on</strong>: 88 ;min time: 208<br />

loop_size:1 >>>> variance(cycles): 0; max_deviati<strong>on</strong>: 16 ;min time: 208<br />

loop_size:2 >>>> variance(cycles): 4; max_deviati<strong>on</strong>: 56 ;min time: 208<br />

loop_size:3 >>>> variance(cycles): 0; max_deviati<strong>on</strong>: 20 ;min time: 212<br />

loop_size:4 >>>> variance(cycles): 3; max_deviati<strong>on</strong>: 36 ;min time: 212<br />

loop_size:5 >>>> variance(cycles): 3; max_deviati<strong>on</strong>: 36 ;min time: 216<br />

loop_size:6 >>>> variance(cycles): 4; max_deviati<strong>on</strong>: 36 ;min time: 216<br />

loop_size:7 >>>> variance(cycles): 0; max_deviati<strong>on</strong>: 68 ;min time: 220<br />

…………………<br />

…………………<br />

loop_size:994 >>>> variance(cycles): 28; max_deviati<strong>on</strong>: 112 ;min time: 2212<br />

27

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

Saved successfully!

Ooh no, something went wrong!