Hello Kernel Brothers!! How are you???<div><br></div><div>So, I would like test the performance of my notebook, developing one or two utilities, and have a better</div><div>mensurement about the speed.</div><div><br></div>
<div>But it can help all of us.</div><div><br></div><div>1st: I would like mensure the speed making a counter (exacly bogomips? may be). Loop+counter during 1 tickrate.<br clear="all"><div>2nd: The most interesting: How many memory cells in ram can we access during 1tickrate? How could we develop this?!</div>
<div><br></div><div>Both utils may run in long mode (64bits). Well, in real mode too; so, we can compare the speed in the two modes!</div><div><br></div><div>Some one knows how to develop a very small program/routine about that?!</div>
<div><br></div><div>For the 2nd situation, a simple idea wrote in codesnipet form (consider the intention, not the sintax! there are bugs! I know. Intel syntax.)</div><div><br></div><div>  dw the_counter_cell 0</div><div>
  lea bx, the_counter_cell</div><div>  xor bx,bx</div><div>label:</div><div>  inc [bx]    # Could not be so simple like this, because the address can be cached. Right?</div><div>  loop label # breaked by an interruption. Just to express the intention.</div>
<div><br></div><div>How could we create a small code for the 2nd situation, tring to force the processor to not use the cache?</div><div><br></div><div>Regards.</div><div>Peace out.</div><div><br></div>-- <br>Atenciosamente, <br>
<br>Gustavo da Silva<br><a href="mailto:gustavodasilva@gmail.com">gustavodasilva@gmail.com</a><br>
</div>