[fpc-other] Which programming language is fastest?

Isaac Gouy igouy2 at yahoo.com
Tue May 10 00:04:38 CEST 2011



--- On Mon, 5/9/11, Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:

> No.
> I did some tests myself and came to similar results. For
> example the
> knucleotide test in c++ runs in about 3 seconds on my quad
> core and about 10seconds on a single core. The fpc program
> needs 50secs.
> The times shown are for single cores.


1) Please go to the blog post, move your cursor over one of the data tables, and click.


2) Notice that the web page you're taken to has the title - "Ubuntu : Intel® Q6600® quad-core"


3) Click on the "C++ GNU g++" link


4) Scroll down (or page search) to "Step 3" and notice that k-nucleotide shows

C++ GNU g++ 13.03 CPU secs, 3.84 Elapsed secs, 83% 81% 94% 84% ≈ CPU Load


5) Change the comparison to Pascal Free Pascal and notice there's no difference between CPU secs (66.26) and Elapsed secs (66.29) for the Pascal program

http://shootout.alioth.debian.org/u32q/benchmark.php?test=all&lang=gpp&lang2=fpascal#faster-programs-measurements





More information about the fpc-other mailing list