PDA

View Full Version : Benchmarking - FreeBasic / Freebasic + FBMath / ThinBasic O2



RobbeK
03-03-2014, 21:13
Hi all,

Curious (once again) to do a compare against Freebasic (Reputed to produce very fast executables).

incl :
- TB source : time shows up at the left top corner of the canvas.

(rar)
sources of the FB files - one uses the Math module of Mr Jean Debord (easier coding , but switches to Double floats and remarkable slower)
the other just the brute force way - using De Moivre's formula (Single floats and identical with TB).
Display routines are almost indentical - TB uses a pointer to a bitmap which is copied to the canvas - in Freebas I used a pointer directly to thescreenbuffer.
FB compiled without the gadgets - I was only interested in the benchmarks.

On my system - the TB runs at the same speed as FB De Moivre ...

best Rob
(ah if someone would tell me how fast this runs on a modern computer ? ) - 26 sec. on mine ;-)

RobbeK
03-03-2014, 22:50
adding another one :

Similar (graphics via BMP )

GFA compiler ("Gesellschaft für Automatisierung GmbH") German - excellent reputation ..

jack
04-03-2014, 02:42
hello RobbeK,
my computer is a Mac Pro with 2 x 2.66 GHz 6-Core Intel Xeon CPU's and NVIDIA Quadro K5000 graphic card,
I run Windows 7x64 in a virtual machine using VMware Fusion, the time for thinbasic 11 sec., GFA 17 sec.

mike lobanovsky
04-03-2014, 14:16
Hi Rob,

Nice work! Composited-mode x64 Win'7 Sp1, 3.2GHz Intel Core i5 Quad results are 16, 14, 10, and 10 secs. Please see the screenshot below:

http://i1240.photobucket.com/albums/gg490/FbslGeek/DuoMandel.png

The FB samples don't display any animation (guess the drawing loop is too tight and no means used to enforce canvas redraw) while the TB and GFA samples do. The TB sample features the black pixel in the center that Peter (or was it Petr?) mentioned elsewhere.


Regards,

RobbeK
04-03-2014, 16:05
Thanks Jack, Mike ..

Here the FB shows animations ... I c no way forcing a refresh (except the used Lock and Unlock screen ).

One step further ... (though I had to use alien code to do this ;-(

Program saves a snapshot (as bmp.bmp) at higher resolutions (incl. a viewer for the image ) -- (iteration leveis automatically raised +4 for this - and set back).
Needs a 1024 x 768 display.
I'll try to find out if it's possible in TBGL (sprites ? )

best Rob

(executable needs to be in the same dir as the script)
l8916