Is a compiled .bas program slower than running in QBasic?
I know I just use a FOR/NEXT loop:
Tcal = TIMER
FOR b = 0 TO 1000000
NEXT b
Tcal = INT(1000 / (TIMER - Tcal))
PRINT Tcal; "loops/ms";
Qbasic4.5(.bas) : 1007 loops/ms near 1 µs
Make exe (stand alone): 280 loops/ms
(Pentium III - 550Mhz / Windows 95)
About 3.5 times slower !!!
I know I just use a FOR/NEXT loop:
Tcal = TIMER
FOR b = 0 TO 1000000
NEXT b
Tcal = INT(1000 / (TIMER - Tcal))
PRINT Tcal; "loops/ms";
Qbasic4.5(.bas) : 1007 loops/ms near 1 µs
Make exe (stand alone): 280 loops/ms
(Pentium III - 550Mhz / Windows 95)
About 3.5 times slower !!!