Looking at the cores there is still a bit room to improve even a bit more. Good job. Have you tried installing another memory manager as well? Also note there are some nice x86_64 optimizations in trunk.
I have a feeling that many more "competition" examples for FPC are less than optimal.
Again: good job!
If mode delphi is not specified it doesn't compile because of AdvancedRecords usage.
-Mdelphi
MaxDepth
It would be great to add the latest optimizations in compilation...
A case where Linux seems much faster than windows.
I have a feeling that many more "competition" examples for FPC are less than optimal.
@Akira: Thanks for submitting this, I guess I would have dragged it on forever...
A note on the inflationary use of the inline modifier: It really only makes sense for very short leaf functions. Certainly not for MakeTree, which is used recursively and cannot be inlined in the first place.
The benefit of inlining on moden processors is dubious to me anyway.
Ok, so, FPC is now number one! I came up with another revised version, and submitted it earlier today.
https://benchmarksgame-team.pages.debian.net/benchmarksgame/performance/binarytrees.html (https://benchmarksgame-team.pages.debian.net/benchmarksgame/performance/binarytrees.html)
Kudos to Akira1364 and FPC developers!
@Grumpy.Of course I did, hence I knew it was the mode..... Bad eyes?
Did you actually compile and run the program.
Now optimize all the other scores (https://benchmarksgame-team.pages.debian.net/benchmarksgame/faster/fpascal-gpp.html)
Now optimize all the other scores (https://benchmarksgame-team.pages.debian.net/benchmarksgame/faster/fpascal-gpp.html)