[Numpy-discussion] "import numpy" is slow

Nils Wagner nwagner@iam.uni-stuttgart...
Thu Jul 31 12:15:59 CDT 2008


On Thu, 31 Jul 2008 10:12:22 -0700
  Christopher Barker <Chris.Barker@noaa.gov> wrote:
> David Cournapeau wrote:
>> Christopher Barker wrote:
>>> On my OS-X box (10.4.11, python2.5, numpy '1.1.1rc2'), 
>>>it takes about 7 
>>> seconds to import numpy!
>> 
>> Hot or cold ? If hot, there is something horribly wrong 
>>with your setup.
> 
> hot -- it takes about 10 cold.
> 
> I've been wondering about that.
> 
> time python -c "import numpy"
> 
> real    0m8.383s
> user    0m0.320s
> sys     0m7.805s
> 
> and similar results if run multiple times in a row.
> 
> Any idea what could be wrong? I have no clue where to 
>start, though I 
> suppose a complete clean out and re-install of python 
>comes to mind.
> 
> oh, and this is a dual G5 PPC (which should have a 
>faster disk than your 
> Macbook)
> 
> 
> -Chris
> 
  
No idea, but for comparison
  time /usr/bin/python -c "import numpy"

real    0m0.295s
user    0m0.236s
sys     0m0.050s
nwagner@linux:~/svn/matplotlib> cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 10
model name      : mobile AMD Athlon (tm) 2500+
stepping        : 0
cpu MHz         : 662.592
cache size      : 512 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 sep 
mtrr pge mca cmov pat pse36 mmx fxsr sse pni syscall mp 
mmxext 3dnowext 3dnow
bogomips        : 1316.57

Nils



More information about the Numpy-discussion mailing list