Hey Jussi,
I'd like to try figuring out why the Pascal program runs so much slower,
relative to Gambas, on my system than on yours. May I ask what version
of FPC you are using?
On 10/11/2014 08:24 PM, Jussi Lahtinen wrote:
$ time gbs3 -c -f polym.gambas
[snip]
real0m4.172s
user
May I ask what version of FPC you are using?
2.6.2-8 [2014/01/22] for x86_64
Jussi
--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS
Please show the Pascal code
Le 11 oct. 2014 06:58, T Lee Davidson t.lee.david...@gmail.com a écrit :
On 10/10/2014 08:50 PM, Benoît Minisini wrote:
Thank you for trying to explain that to me. But, now I am really confused.
As far as I can tell, the Gambas program also uses floating point
Le 11/10/2014 06:58, T Lee Davidson a écrit :
On 10/10/2014 08:50 PM, Benoît Minisini wrote:
Thank you for trying to explain that to me. But, now I am really confused.
As far as I can tell, the Gambas program also uses floating point
numbers. The only integers I see used in that program are
Le 11/10/2014 18:32, T Lee Davidson a écrit :
On 10/11/2014 08:52 AM, Benoît Minisini wrote:
You're right, I thought that the number of occurrences was printed, not
the result. Always look at the code before answering!:-)
Well, as Fabien says, shows the Pascal code. I find strange that a
Something wrong here! Gambas and Pascal are different category programming
languages, interpreted and compiled. And thus this is hard to believe. So I
had to test this myself.
$ time ./polym_g.gambas
125
125
125
125
125
125
125
125
125
125
real
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
Just to be clear, I did not run 'polynom.gambas' as a script with the
she-bang specifying to use 'gbs3' to execute it. That *is* slow.
I executed it using gbs3 with the '-f' option invoking the JustInTime
compiler.
I also just now used the IDE to create a command-line application based
on the
Le 11/10/2014 21:49, T Lee Davidson a écrit :
Just to be clear, I did not run 'polynom.gambas' as a script with the
she-bang specifying to use 'gbs3' to execute it. That *is* slow.
I executed it using gbs3 with the '-f' option invoking the JustInTime
compiler.
I also just now used the IDE
Ah ok, sounds more logical. Anyway, if you want to compare Gambas with a
compiled language, you should use the JIT compiler. And you must not use
it if you compare it with an interpreted-only language.
Absolutely, that would make the comparing fair. I'll test later with JIT.
Jussi
My cleaning script didn't include rm -f /usr/local/bin/gbs3 and
apparently because of changed paths make install didn't overwrite old
version. So my gbs3 had version number 3.2.90, and no -f option (it was
simply ignored)!
Just to warn others, you may want to check whether you too have two
Le 11/10/2014 02:31, T Lee Davidson a écrit :
I've been looking at Lazarus lately due to its cross-platform compile
ability. So...
Just for fun I took the Polynom benchmark program from
gambaswiki.org/wiki/doc/benchmark and converted it to Free Pascal; then
compiled it with the Free Pascal
On 10/10/2014 08:50 PM, Benoît Minisini wrote:
Thank you for trying to explain that to me. But, now I am really confused.
As far as I can tell, the Gambas program also uses floating point
numbers. The only integers I see used in that program are for an
iterator, an array index, and an iterator
13 matches
Mail list logo