Slower than Python

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri Mar 1 12:50:15 PST 2013


On 3/1/13 3:30 PM, cvk012c wrote:
> Tried to port my SIP parser from Python to D to boost performance
> but got opposite result.
> I created a simple test script which splits SIP REGISTER message
> 10 million times. Python version takes about 14 seconds to
> execute, D version is about 23 seconds which is 1.6 times slower.
> I used DMD 2.062 and compiled my script with options -release and
> -O. I used Python 3.3 64 bit.
> I ran both scripts on the same hardware with Windows 7 64.

Add -inline to the options.

Andrei


More information about the Digitalmars-d mailing list