📄 whetstone.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head> <title></title> <link rel="stylesheet" media="screen" type="text/css" href="./style.css" /> <link rel="stylesheet" media="screen" type="text/css" href="./design.css" /> <link rel="stylesheet" media="print" type="text/css" href="./print.css" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><a href=start.html>start</a></br><div class="toc"><div class="tocheader toctoggle" id="toc__header">Table of Contents</div><div id="toc__inside"><ul class="toc"><li class="level1"><div class="li"><span class="li"><a href="#whetstone" class="toc">Whetstone</a></span></div><ul class="toc"><li class="level2"><div class="li"><span class="li"><a href="#compiling_for_blackfin" class="toc">Compiling for Blackfin</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#results" class="toc">Results</a></span></div></li></ul></li></ul></div></div><h1><a name="whetstone" id="whetstone">Whetstone</a></h1><div class="level1"><p> The Whetstone benchmark was the first intentionally written to measure computer performance and was designed to simulate floating point numerical applications: </p><ul><li class="level1"><div class="li"> it contains a large percentage of floating point data and instructions</div></li><li class="level1"><div class="li"> a high percentage of execution time (approximately 50%) is spent in mathematical library functions</div></li><li class="level1"><div class="li"> the majority of its variables are global and the test will not show up the advantages of architectures such as RISC where the large number of processor registers enhance the handling of local variables; </div></li><li class="level1"><div class="li"> Whetstone contains a number of very tight loops and the use of even fairly small instruction caches will enhance performance considerably; </div></li><li class="level1"><div class="li"> the original program was written in Fortran using single or double precision calculations. </div></li></ul><p> Whetstone history, can be found at <a href="http://homepage.virgin.net/roy.longbottom/whetstone.htm" class="urlextern" title="http://homepage.virgin.net/roy.longbottom/whetstone.htm" rel="nofollow">http://homepage.virgin.net/roy.longbottom/whetstone.htm</a></p><p>The version of Whetstone which is in the uClinux-dist was taken from <a href="http://cm.bell-labs.com/netlib/benchmark/index.html" class="urlextern" title="http://cm.bell-labs.com/netlib/benchmark/index.html" rel="nofollow">http://cm.bell-labs.com/netlib/benchmark/index.html</a> and was written in 3/20/98 by Rich Painter, as an update of the original 1987 C version of the Whetstone benchmark. This updated version corrects a minor oversight in the original version which caused the output of the original C version to look different from the orginal Fortran version.</p></div><!-- SECTION [1-1434] --><h2><a name="compiling_for_blackfin" id="compiling_for_blackfin">Compiling for Blackfin</a></h2><div class="level2"><pre class="code">rgetz@test:~/whetstone> bfin-uclinux-gcc -Wl,-elf2flt -O3 -ffast-math whetstone.c -o whetstone -lmrgetz@test:~/whetstone> rcp ./whetstone root@10.64.204.125:/var/.rgetz@test:~/whetstone> rsh -l root 10.64.204.125 /var/whetstone 1000Loops: 1000, Iterations: 1, Duration: 6 sec.C Converted Double Precision Whetstones: 16.7 MIPS</pre></div><!-- SECTION [1435-1820] --><h2><a name="results" id="results">Results</a></h2><div class="level2"><table class="inline"> <tr> <th class="leftalign"> Flags </th><th class="centeralign"> size </th><th class="centeralign"> Whetstones </th> </tr> <tr> <td class="leftalign"> -Os </td><td class="centeralign"> 20056 </td><td class="centeralign"> 2.8 MIPS </td> </tr> <tr> <td class="leftalign"> -Os -ffast-math </td><td class="centeralign"> 17288 </td><td class="centeralign"> 3.4 MIPS </td> </tr> <tr> <td class="leftalign"> -Os -ffast-math -mfast-fp </td><td class="centeralign"> 14648 </td><td class="centeralign"> 16.1 MIPS </td> </tr> <tr> <td class="leftalign"> -O0 </td><td class="centeralign"> 30128 </td><td class="centeralign"> 1.8 MIPS </td> </tr> <tr> <td class="leftalign"> -O1 </td><td class="centeralign"> 20096 </td><td class="centeralign"> 2.8 MIPS </td> </tr> <tr> <td class="leftalign"> -O2 </td><td class="centeralign"> 20312 </td><td class="centeralign"> 2.8 MIPS </td> </tr> <tr> <td class="leftalign"> -O3 </td><td class="centeralign"> 20664 </td><td class="centeralign"> 7.7 MIPS </td> </tr> <tr> <td class="leftalign"> -O3 -ffast-math </td><td class="centeralign"> 18040 </td><td class="centeralign"> 16.7 MIPS </td> </tr> <tr> <td class="leftalign"> -O3 -mfast-fp </td><td class="centeralign"> 18056 </td><td class="centeralign"> 43.5 MIPS </td> </tr> <tr> <td class="leftalign"> -O3 -ffast-math -mfast-fp </td><td class="centeralign"> 15400 </td><td class="centeralign"> 92.6 MIPS </td> </tr></table><br /></div><!-- SECTION [1821-] --></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -