Whoa! I found a QB speed topic & the Running Cheetah Software programmer at the same time
Sorry, i did not have time to read this, but i made some QB speed tests what i wanted to post somewhere.
As i can see this topic is really out of date, but KingCheetah: what happened to your big cat game, Panthera?
So here are those speed - tests (I had written them some days ago):
How slow is Quick Basic?
I just tested some codes on my P233 (a few days ago near midnight) with this code:
Code:
'Speed - test
intc% = 15
floc% = 2
'Some floating point:
DEF SEG = &H40
tim1& = PEEK(&H6D)
tim1& = tim1& * 256 + PEEK(&H6C)
FOR j% = 0 TO floc% - 1
FOR i% = 0 TO 32000
b# = 1
a# = 5
d# = 99
c# = a# / b#
d# = d# + c#
e# = 3 * d#
c# = e# - d#
NEXT i%
NEXT j%
tim2& = PEEK(&H6D)
tim2& = tim2& * 256 + PEEK(&H6C)
PRINT "Floattest start/end:", tim1&, tim2&
IF tim2& - tim1& < 0 THEN PRINT tim2& - tim1& + 65536 ELSE PRINT (tim2& - tim1&) / floc%
'And integers:
DEF SEG = &H40
tim1& = PEEK(&H6D)
tim1& = tim1& * 256 + PEEK(&H6C)
FOR j% = 0 TO intc% - 1
FOR i% = 0 TO 32000
b% = 1
a% = 5
d% = 99
c% = a% \ b%
d% = d% + c%
e% = 3 * d%
c% = e% - d%
NEXT i%
NEXT j%
tim2& = PEEK(&H6D)
tim2& = tim2& * 256 + PEEK(&H6C)
PRINT "Integertest start/end:", tim1&, tim2&
IF tim2& - tim1& < 0 THEN PRINT tim2& - tim1& + 65536 ELSE PRINT (tim2& - tim1&) / intc%
Where i experienced times less than 50 ticks i increased intc% or floc% to get more accurate results.
(These values are in clock ticks showing how long it takes to run that i%=0 to 32000 loop on my P233)
I got these results:
Code:
Integer Float Size
QBasic 1.0 --------------------------------------
from IDE 3.5 44.8
QBasic 4.0 --------------------------------------
from IDE 1.14 1.8
compiled 0.152 0.27 24533
QBasic 4.5 --------------------------------------
from IDE 1.14 10.9
compiled 0.152 8.6 24430
IDE + FFIX 1.14 1.45
comp + FFIX 0.152 0.25 24580
QBasic 7.1 --------------------------------------
from IDE 1.14 11
compiled 0.157 5.2 28674
(I could not make FFIX working with it)
FirstBasic --------------------------------------
from IDE 0.217 0.525
compiled 0.217 0.525 21616
From this QBasic 4.5 seems to be the best choice. I know that 7.1 can create huge EXEs and has some other advantages, but i still more like 4.5.
In the past i had some other basic compilers too, but i think i deleted them during a disk cleaning.