[fpc-other] Which programming language is fastest?

Mattias Gaertner nc-gaertnma at netcologne.de
Tue May 10 00:17:21 CEST 2011


On Mon, 9 May 2011 15:04:38 -0700 (PDT)
Isaac Gouy <igouy2 at yahoo.com> wrote:

> 
> 
> --- 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

Yes, sorry, if I confused you.
I just wanted to point out, that the times are
correct and that the fpc programs are often
several times slower compared to the c and java versions.

I wonder why the Perl median dropped from 46 to 137.

Mattias


More information about the fpc-other mailing list