Wow, compiling the different apps as mentioned in the OSNews article
with optimization, made a huge difference..
GCC 4.x time went down to 37.6 seconds from 55.8
Java with server VM went down to 113.5 seconds from 161.2
Interestingly, no matter what I set for FPC, the time was constant at
55.1 seconds.
Or does that just mean that the default settings in Lazarus are pretty
much the best optimization settings to use.
I tried the following using FPC 2.0.3 (latest from svn)
-S2i -OG3p2 -TLinux -Pi386 -vewnhi -l -Fu. -oFPCBenchV2 FPCBenchV2.pp
and
-S2i -OG1up2 -vewnhi -l -Fu. -oFPCBenchV2 FPCBenchV2.pp
and the Lazarus default
-S2i -OG1 -vewnhi -l -Fu. -oFPCBenchV2 FPCBenchV2.pp
I then the tried the following, which did make a difference (Generate
Normal Code at Optimization Level 0). Time jumped to 114.3 seconds.
-S2i -vewnhi -l -Fu. -oFPCBenchV2 FPCBenchV2.pp
With optimization enabled, GCC (c source) clearly came out the winner.
Not sure why Java 5 runs so sloooooow on my computer though.
Previously I used Java 1.4 with much better performance. From this I
guess C is still faster to run, but definitely not for readability and
friendliness. ;-)
Regards,
- Graeme -
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives