Slower than Python

SomeDude lovelydear at mailmetrash.com
Fri Mar 1 17:50:58 PST 2013


On Friday, 1 March 2013 at 22:02:02 UTC, Timon Gehr wrote:
> 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.)

Still, there is a case to be made for a performance tests suite 
that could be run after (or before) each release of the language, 
like http://speed.pypy.org
.


More information about the Digitalmars-d mailing list