Page 1 of 1

Speed Test

Posted: Sun Dec 08, 2002 10:30 am
by pskyboy
[attachment deleted by admin]

Re:Speed Test

Posted: Sun Dec 08, 2002 7:25 pm
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?

Re:Speed Test

Posted: Mon Dec 09, 2002 11:29 am
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

Re:Speed Test

Posted: Tue Dec 10, 2002 2:44 am
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)