M-HT
Very Active Member
I made some changes to the Dosbox dynamic recompiler backend to speed it up a bit.
The result is on these pages:
http://members.chello.sk/apauer/dosbox6/dosbox6.html - changes in dosbox gp2x version 0.72-6
http://members.chello.sk/apauer/dosbox7/dosbox7.html - changes in dosbox cvs 2009-04-29
The speed increase is quite small.
In the previous version the dynamic core was ~55% faster than the simple core.
In the current version the dynamic core is ~59% faster than the simple core.
I was also interested in how fast (slow) dosbox really is, so I compared these versions of the cputest I'm using.
- dos executable in dosbox (simple and dynamic core)
- statically recompiled dos executable
- native executable
The result are following:
dos executable in dosbox (simple core) - 6m49.460s
dos executable in dosbox (dynamic core) - 4m17.590s
statically recompiled dos executable - 0m9.520s
native executable - 0m1.740s
That means, that in this test the statically recompiled dos executable is 5.47 times slower than native executable and the dos executable in dosbox (dynamic core) is 148.04 times slower than the native executable.
I also tried the cputest with larger data with following results:
statically recompiled dos executable - 2m30.380s
native executable - 0m37.540s
In this test the statically recompiled dos executable was 4.01 times slower than native executable. I didn't test the dos executable in dosbox, because it would take a very long time.
What would be interesting to compare is to run x86 linux executable with qemu user emulation, but unfortunately qemu is not working on arm hosts (AFAIK).
The result is on these pages:
http://members.chello.sk/apauer/dosbox6/dosbox6.html - changes in dosbox gp2x version 0.72-6
http://members.chello.sk/apauer/dosbox7/dosbox7.html - changes in dosbox cvs 2009-04-29
The speed increase is quite small.
In the previous version the dynamic core was ~55% faster than the simple core.
In the current version the dynamic core is ~59% faster than the simple core.
I was also interested in how fast (slow) dosbox really is, so I compared these versions of the cputest I'm using.
- dos executable in dosbox (simple and dynamic core)
- statically recompiled dos executable
- native executable
The result are following:
dos executable in dosbox (simple core) - 6m49.460s
dos executable in dosbox (dynamic core) - 4m17.590s
statically recompiled dos executable - 0m9.520s
native executable - 0m1.740s
That means, that in this test the statically recompiled dos executable is 5.47 times slower than native executable and the dos executable in dosbox (dynamic core) is 148.04 times slower than the native executable.
I also tried the cputest with larger data with following results:
statically recompiled dos executable - 2m30.380s
native executable - 0m37.540s
In this test the statically recompiled dos executable was 4.01 times slower than native executable. I didn't test the dos executable in dosbox, because it would take a very long time.
What would be interesting to compare is to run x86 linux executable with qemu user emulation, but unfortunately qemu is not working on arm hosts (AFAIK).