[IPython-dev] IPython test suite is slow on OS X fast on Windows

Fernando Perez fperez.net at gmail.com
Fri Feb 20 19:48:08 EST 2009


On Fri, Feb 20, 2009 at 3:08 PM, Brian Granger <ellisonbg.net at gmail.com> wrote:
> Hi,
>
> Last summer Min and I noticed that the IPython test suite is quite
> fast on Windows, but really slow on OS X:
>
> 1.  2.53 Ghz Intel Core 2 Duo, Mac OS X 10.5.  Test suite takes 67 seconds
>
> 2.  *Same machine*, running Windows XP as VM in VMWare.  Test suite
> takes 17 seconds.
>
> I have profiled the test suite and found some interesting and confusing things:
>
> On the OS X, calls to tokenize from ultraTB take up 30 seconds!  On
> Windows, just 0.6 seconds.  Does anyone have an idea of what might be
> going on here?

That's very odd... On my fairly fast desktop using 64-bit ubuntu 8.10, I get

Ran 431 tests in 28.629s

Are you sure that the XP tests are really all completing identically?

The tokenize stuff is very bizarre.  That's part of the stdlib, do you
have a little self-contained example that we could use to track down
the difference across machines?

Cheers,

f



More information about the IPython-dev mailing list