[Ironpython-users] Why is IP 3X slower than python 2.7?

Vernon D. Cole vernondcole at gmail.com
Tue Aug 25 05:21:30 CEST 2015


On some benchmarks, IronPython is faster than CPython. But, if you are
running short scripts from the command line, IronPython is several seconds
slower, because, as you said, it compiles to dotNET code, which is not
cached for the next run.
The speed difference depends on what you are doing.

On Mon, Aug 24, 2015 at 3:36 PM, John Trinder <trinderjohn at talktalk.net>
wrote:

> I've been doing some work with python 2.7 having digressed from IronPython
> to which I shall be returning. The thing I notice most is that python 2.7
> is roughly 3X faster at executing than IP.
>
> Why is this?
>
> I know python27 compiles scripts into 'C' code => .pyc files and that IP
> does not do this. But even so, IP must compile native code into NET code
> which should run only slightly slower than python27.
>
> Regards and thanks for a good NET implementation of python.
> _______________________________________________
> Ironpython-users mailing list
> Ironpython-users at python.org
> https://mail.python.org/mailman/listinfo/ironpython-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20150824/5c1aab62/attachment.html>


More information about the Ironpython-users mailing list