[Numpy-discussion] "import numpy" is slow

Christopher Barker Chris.Barker@noaa....
Tue Aug 5 13:13:05 CDT 2008


Robert Kern wrote:

> 
> It's still pretty bad, though. I do recommend running Disk Repair like Bill did.

I did that, and it found and did nothing -- I suspect it ran when I 
re-booted -- it did take a while to reboot.

However, this is pretty consistently what I'm getting now:

$ time python -c "import numpy"

real    0m0.728s
user    0m0.327s
sys     0m0.398s

Which is apparently pretty slow. Robert gets:

$ time python -c "import numpy"
python -c "import numpy"  0.18s user 0.46s system 88% cpu 0.716 total

Is that on a similar machine??? Are you running Universal binaries? 
Would that make any difference? I wouldn't think so, I'm just grasping 
at straws here.

This is a Dual 1.8GHz G5 desktop, running OS-X 10.4.11, Python 2.5.2 
(python.org build), numpy 1.1.1 (from binary on sourceforge)

I just tried this on a colleague's machine that is identical, and got 
about 0.4 seconds "real" -- so faster than mine, but still slow.

This still feels blazingly fast to me, as I was getting something like 
7+ seconds!

thanks for all the help,

-Chris







-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker@noaa.gov


More information about the Numpy-discussion mailing list