[IronPython] Sin and Sqrt performance (Chris Trimble)

Dino Viehland dinov at exchange.microsoft.com
Tue Apr 18 03:22:50 CEST 2006


Strange...  Could 0.0 be a float instead of a double?  I'm not sure if that'd be faster or slower...  Maybe it's time to diff the generated IL.

________________________________________
From: users-bounces at lists.ironpython.com On Behalf Of Chris Trimble
Sent: Monday, April 17, 2006 4:57 PM
To: Discussion of IronPython
Subject: Re: [IronPython] Sin and Sqrt performance (Chris Trimble)

On 4/17/06, Dino Viehland <dinov at exchange.microsoft.com> wrote:
> I wonder if Boo could have optimized away the entire loop
> (in theory they could notice the calls into Math and optimize those)...
>  Note the 4ms is basically equal to zero because the precision
> of DateTime.Now isn't very good.

Oh blah!  I knew something was up here...  I totally messed up my
ticks conversion to ms.  A tick is 100ns, so it should be divide by
10k, not 1m.

New stat:  IP = ~5.5 seconds.  Boo = ~450ms.  C# = ~1.15s.

I added a modulo print of i every 1m in the Boo loop to make sure it
was doing the work.  And the end result of j is printed, so hopefully
it's doing something other than optimizing the loop out completely.

 - Chris
_______________________________________________
users mailing list
users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



More information about the Ironpython-users mailing list