Page 1 of 1

CPU perfomance...

Posted: Thu Oct 24, 2013 6:06 pm
by jedie
How many CPU cycles does the 6809 at normal running frequency made in one second?

Currently, unoptimized DragonPy runs around 55000 cycles/sec.

Re: CPU perfomance...

Posted: Thu Oct 24, 2013 7:28 pm
by sixxie
894886.25 (14318180 รท 16) - or slightly fewer on some Dragons.

Re: CPU perfomance...

Posted: Thu Oct 24, 2013 9:46 pm
by zephyr
894886.25 when a Dragon is fitted with a 14.31818 MHz crystal. 888625 when a Dragon is fitted with a 14.218 MHz crystal.

Re: CPU perfomance...

Posted: Fri Oct 25, 2013 12:57 pm
by jedie
Wow. Than i'm far away from that.
But ok, i didn't do any optimizing and have many logging action inserted... there is still a lot air ;)

Re: CPU perfomance...

Posted: Tue Oct 29, 2013 9:46 am
by jedie
OK... It has interest me... So i just comment the many logging output with a script:
https://github.com/jedie/DragonPy/commi ... a37f8fce6b

New values are:
* Running is a VirtualBox with PyPy: ~315.000 cycles/sec (before: 140.000 cycles/sec)
* in VM with CPython: ~165.000 cycles/sec (before 37.000 cycles/sec)
* CPython native under Windows: ~235.000 cycles/sec (before 55.000 cycles/sec)

It's still far from 894.000 on a real machine. But i only remove the logging activity and make no real optimizing.
And it's just enough to make some tests...

Re: CPU perfomance...

Posted: Tue Oct 29, 2013 11:39 am
by jedie
**update**

Currently TKinter doesn't work with PyPy under Windows. So i have implement a simple console with: https://github.com/jedie/DragonPy/commi ... debcf13f5d

So i can run the sbc09 ROM under Windows with PyPy... And so i go faster than realtime with ~1.370.000 CPU cycles/sec :mrgreen:

And remember: I only just commend the few logging activity and not really optimizing code.

Re: CPU perfomance...

Posted: Tue Oct 29, 2013 12:13 pm
by robcfg
You have to take into account that outputting debug data is quite a heavy process, so no wonder that without it, it goes faster... :)

Congratulations on having it running in real time!