[IronPython] performance hit on 64 bit systems
Lukas Cenovsky
cenovsky at bakalari.cz
Fri Sep 3 12:17:09 CEST 2010
Wild guess:
- do you run 64-bit IronPython on 2008 R2?
- did you NGEN 64-bit IronPython and the app?
--
-- Lukáš
On 3.9.2010 12:04, Idan Zaltzberg wrote:
>
> Hello,
>
> I'm trying to migrate a big application (running on IronPython 2.6.1)
> from a 32 bit OS (windows server 2003 R2) to a 64 bit system (windows
> server 2008 R2).
>
> I have noticed about 50% performance hit, i.e. operations that took 10
> seconds, now take 15 seconds.
>
> I have tried to see the what is the root cause and created the
> following test, and ran it on both systems:
>
> def f():
>
> sw.Reset()
>
> sw.Start()
>
> for x in xrange(n):
>
> s='string:%s' % (x,)
>
> print sw.Elapsed.TotalSeconds
>
> from System.Diagnostics import Stopwatch
>
> sw = Stopwatch()
>
> n = 1e7
>
> f()
>
> è *11.7766457 (In windows server 2003 R2 – 32 bit)*
>
> è *16.3231212 (In windows server 2008 R2 – 64 bit)*
>
> * *
>
> Which matches the about 50% loss I have seen on my system.
>
> On the other hand, the equivalent code in cpython yields *slightly
> better results to the 64 bit OS* (3.7 sec to the 64 bit, against 4.1
> sec to the 32 bit).
>
> I hoped you might help to understand why this as happened and can I
> improve the performance in any way for 64 bit systems.
>
> Thanks.
>
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100903/e9da4c4d/attachment.html>
More information about the Ironpython-users
mailing list