[Gambas-user] Wow, Gambas is twice as fast as (Free) Pascal

T Lee Davidson t.lee.davidson at ...626...
Sat Oct 11 21:07:51 CEST 2014


I guess I should have included my system information; just didn't think 
about it being relevant at the time. Obviously, though, it is.

System Info:
Intel(R) Pentium(R) 4 CPU 2.40GHz, 1G RAM
Mageia 3, Kernel 3.10.54 (KDE4)
Gambas 3.5.4
Free Pascal Compiler version 2.6.4 [2014/03/07] for i386


Interestingly, closing my web browser gave me better performance with 
both, but still a roughly 2:1 difference:

Pascal program compiled with `fpc polynom.pas` and then timed:
real    0m22.445s
user    0m20.875s
sys     0m0.014s

Gambas program executed with `time gbs3 -f -c polynom.gambas`:
real    0m11.303s
user    0m10.297s
sys     0m0.035s


Lee


On 10/11/2014 02:37 PM, Jussi Lahtinen wrote:
> As you can see, my numbers are something completely different. My test was
> done with Intel Core2 Quad @ 2.83 GHz. And the Pascal version was compiled
> with "fpc polym.pas".
> What kind of system ran the Gambas code in 18 seconds!? And yet, how did it
> spend 7 times more time on the Pascal program than my system!?




More information about the User mailing list