Qbasicnews.com

QBasic => QB Discussion & Programming Help => Topic started by: jcc3inc on February 13, 2003, 11:36:38 PM



Title: QB45 speed vs VBDOS vs QB7.1
Post by: jcc3inc on February 13, 2003, 11:36:38 PM
Gentlemen:

I was pleased to read that Agamenus found the speed of a program run in VBDOS ran about 2x as fast as QB4.5!  I had to try that out and here are the results for .EXE programs:

QB45 speed w/FFIX  6404
QB7.1 speed w/FFIX ~ 6600
VBDOS speed w/FFIX ~ 6600
PowerBasic speed 9270

All the Basics ran about the same speed for this number handling application.  All needed FFIX to almost double the speed.  But PB is about 1.4 x as fast!

When I run the .EXE  on my ($35 swap meet) 133 MHz unit I get 6400 speed.  Running on my 500 MHz unit the speed is 8785!  That is  about 1.37 times faster! Can you offer an explanation as to why it's not 500/133 (=3.7x) times as fast?

Thanks for your inputs.

Jack C.


Title: QB45 speed vs VBDOS vs QB7.1
Post by: na_th_an on February 14, 2003, 09:08:53 AM
OS overload, FPU not as fast as it should be, poor and old 16 bits code... many reasons ;)


Title: QB45 speed vs VBDOS vs QB7.1
Post by: toonski84 on February 14, 2003, 08:02:12 PM
megahertz is no indicator of speed.  it is only the frequency of the chip.  most companies make their chips go at a higher frequency so people believe it is faster because of that misconception, but in fact it has little effect on the speed itself.  instead, look at the number of flops (floating point operations) it can do in a second, if that's available to you.  also, other factors, memory, memory usage, etc. can make the speed vary.


Title: QB45 speed vs VBDOS vs QB7.1
Post by: Agamemnus on February 14, 2003, 10:54:33 PM
Well, at least it looked at the time to be faster...

My program did a lot of calculations and a LOT MORE array access as opposed to graphics, so your results may vary.