Speed Test

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
pskyboy

Speed Test

Post by pskyboy »

[attachment deleted by admin]
Curufir

Re:Speed Test

Post by Curufir »

Err, is it just me or won't any code you use to check speed inside bochs give the 'Emulated' speed of the processor, not the equivalent real time speed?
pskyboy

Re:Speed Test

Post by pskyboy »

Yes, re reading my post i realised it didn't quite put across what i intended. It was purely a comparative excercise to show the difference in speed between emulating something and running it natively.

Peter
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Speed Test

Post by Pype.Clicker »

busy looping is a very old-fashionned and unportable way to wait ... you should better replace your loop by something that will be kept accurate regardless of the actual CPU speed, like
* waiting for a timer interrupt
* waiting for a keypress (my personnal favourite one - can even be done by polling the keyboard port if you don't have an IDT up and running already :)
* waiting for a screen vertical retrace (if interrupt set up seems too hard to you)
Post Reply