I found an interesting benchmark on
http://www.tempest-sw.com/benchmark/. The author wrote a small console application to compute Pi to any given number of digits. He compiled this under a few different prorgramming languages. Then he used a utilty called Timer to calculate how long it took to run different Pi computations.
Basically, I ported the Pi console application to Lazarus. I compiled a Lazarus version of the application. Similar to what the original author did, I used the Timer application to compare performance of the Delphi executable to the Lazarus one.
Versions used:
Delphi 7.0 Build 8.1 (7.1 update patch)
Lazarus 0.9.1b, FPC 1.9.3
Here are my results:
Digits, Delphi, Lazarus:5, 20, 10
10, 10, 0
50, 10, 10
100, 11, 10
500, 60, 60
1000, 220,
2415000, 5348,
584810000, 21741,
2370515000, 48891,
5332620000, 87325,
95127When you compute Pi starting at around 1000 digits, you can see a small difference in the performance between the Delphi and Lazarus executables. I bolded the numbers where you can see the difference.
I took the slower time and divided it by the faster time to get a percent difference. For example, in the case of 20000 digits: 95127/87325=1.09.
I interpret this to mean that the Delphi application runs about 9% faster computing Pi then the Lazarus version.
This was surprising to me. For some of my Lazarus applications that were ported from Delphi, I had observed (subjectively) a significant increase in performance.