Slower than Python

Timon Gehr timon.gehr at gmx.ch
Fri Mar 1 14:02:01 PST 2013


On 03/01/2013 10:28 PM, cvk012c wrote:
> ...
>
> On my hardware with -inline options it now takes about 15 secs which is
> still slower than Python but with both -inline and -noboundscheck it
> takes 13 secs and finally beats Python.
> But I still kind of disappointed because I expected a much better
> performance boost and got only 7%. Counting that Python is not the
> fastest scripting language I think that similar Perl and Java scripts
> will outperform D easily.

Never make such statements without doing actual measurements. 
Furthermore, it is completely meaningless anyway. Performance benchmarks 
always compare language implementations, not languages.

(Case in point: You get twice the speed by using another compiler 
backend implementation.)


More information about the Digitalmars-d mailing list