[Gambas-user] Polynom Benchmark
John Spikowski
support at ...2529...
Mon Mar 7 06:58:34 CET 2011
On Sun, 2011-03-06 at 20:15 +0100, Benoît Minisini wrote:
> > I tried to run the Polynom benchmark with Gambas 3 (# 3638) and it
> > returned this error.
> >
> > jrs at ...2530...:~/benchmark$ time ./polynom.gbs
> > CComponent.InitComponent.166: #6: Type mismatch: wanted Integer, got
> > String instead
> > 0: CComponent.InitComponent.166
> > 1: CComponent._init.212
> > 2: MMain.MakeVirtualProject.191
> > 3: MMain.Main.93
> >
> > http://gambasdoc.org/help/doc/benchmark/polynom?v3
> >
>
> Fixed in revison #3640.
>
> Regards,
>
Thanks Benoît, that fixed the problem.
I ran the Polynom benchmark on my old HP laptop (2.8 ghz) under Ubuntu
10.10 (32 bit) comparing Perl, ScriptBasic, Python and Gambas 3. I'm
assuming at this point that ScriptBasic being typeless and dynamically
creating it's work array is the reason for the disparity.
Note: I changed N in all programs to be 50000 from 500000.
<<< Perl >>>
jrs at ...2530...:~/benchmark$ time ./polynom.pl
125000
125000
125000
125000
125000
125000
125000
125000
125000
125000
real 0m53.441s
user 0m51.199s
sys 0m0.104s
jrs at ...2530...:~/benchmark$
<<< ScriptBasic >>>
jrs at ...2530...:~/benchmark$ time ./polynom.sb
125000
125000
125000
125000
125000
125000
125000
125000
125000
125000
real 3m19.787s
user 3m11.804s
sys 0m0.420s
jrs at ...2530...:~/benchmark$
<<< Python >>>
jrs at ...2530...:~/benchmark$ time ./polynom.py
125000.0
125000.0
125000.0
125000.0
125000.0
125000.0
125000.0
125000.0
125000.0
125000.0
real 0m50.074s
user 0m46.415s
sys 0m0.152s
jrs at ...2530...:~/benchmark$
<<< Gambas 3 >>>
jrs at ...2530...:~/benchmark$ time ./polynom.gbs
125000
125000
125000
125000
125000
125000
125000
125000
125000
125000
real 0m32.326s
user 0m30.122s
sys 0m0.068s
jrs at ...2530...:~/benchmark$
More information about the User
mailing list