[futurebasic] Speed Test

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 2000 : Group Archive : Group : All Groups

From: Scott Spencer <sj3@...>
Date: Wed, 13 Sep 2000 18:48:11 +0000
OK Speed Freaks....

When Mars released the public beta of Object Basic (OB) a couple years ago,
he included an OB vs FBII comparison in the OB Demo files.

The File was called "3D Viewer" and it drew some interesting color graphics.
The demo included the OB and FB source code written for the respective
environments, and a precompiled FBII app.  I believe both versions were
written by Charles Ringo.

At that time, running the comparison was VERY impressive as it showed how OB
beat the pants off of FBII. Of course, OB compiled to the PowerPC, and FBII
only to 68k.  But the demo left anyone who tried it somewhat in awe about
how fast OB was/is.

With the recent speed test discussions, I thought I'd compile the data from
3 runs each of the OB and FB files of 3D Viewer.  The FBII version I ran was
the precompiled version (as I don't have FBII on my machine).

BTW, here are my machine specs;

    -   Beige G3 MT w/ Newer MaxPowr G3 400mHz upgrade.
    -   System 9.0.4
    -   128 MB RAM
    -   VM on

Then, I decided to try compiling the code in FB^3.  I'll add that the FBII
code compiled in FB^3 without problem or requiring any modification (other
than having to turn off the "Use only Dimensioned Variables", and commenting
out the "Compile" statement).

Then I ran the code in FB^3......my head is still swimming!!!

Here are the results (values are in ticks):

    Enviroment          Run 1       Run 2       Run 3
    ----------          -----       ------      ------
    Object Basic        20          19          20
    FutureBasic II      349         351         350
    FutureBASIC^3       4           4           4


Now, to be fair, the OB compiler has not been updated for a couple of years,
but I remember how impressed I was when I first ran this comparison with
FBII back then.

Impressed doesn't do justice to how I felt after seeing it run in FB^3.

If anyone wants the source code, I'll email it to them.  Or, you can get it
by downloading Object Basic at:

    http://www.redplanetsw.com


-- 
Scott Spencer
SJ3
sj3@...