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 Compiler ('fpc').
Much to my surprise, the *pre-compiled* Pascal program ran twice as slow
as the Gambas program that was compiled on-the-fly:
`time gbs3 -f -c polynom.gambas`
1250000
1250000
1250000
1250000
1250000
1250000
1250000
1250000
1250000
1250000
real 0m17.904s
user 0m9.603s
sys 0m0.052s
Pre-compiled FP executable:
`time ./polynom`
1.25000000000000E+006
1.25000000000000E+006
1.25000000000000E+006
1.25000000000000E+006
1.25000000000000E+006
1.25000000000000E+006
1.25000000000000E+006
1.25000000000000E+006
1.25000000000000E+006
1.25000000000000E+006
real 0m35.247s
user 0m20.936s
sys 0m0.032s
Maybe it's just me, but I think that's impressive. Go Gambas!
(Now if only we could target Mono ...)
:-)
Lee
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://p.sf.net/sfu/Zoho
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user