[SciPy-user] Newbie question on execution time of import scipy

Travis N. Vaught travis at enthought.com
Fri Mar 14 00:16:30 EST 2003


Interestingly I get the following:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\travis>python
ActivePython 2.2.2 Build 224 (ActiveState Corp.) based on
Python 2.2.2 (#37, Nov 26 2002, 10:24:37) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> s=time.time();import scipy;print time.time()-s
6.45899999142
>>>
^C
C:\Documents and Settings\travis>
C:\Documents and Settings\travis>python
ActivePython 2.2.2 Build 224 (ActiveState Corp.) based on
Python 2.2.2 (#37, Nov 26 2002, 10:24:37) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> s=time.time();import scipy;print time.time()-s
1.19200003147
>>>

This is using:
Intel Pentium III processor
698 MHz
256 MB of RAM

Weird, huh?

BTW the scipy version is:
>>> scipy.__version__
'0.2.0_alpha_154.4535'
>>>

I then upgraded to the latest build for Python 2.2 and got the
following:

ActivePython 2.2.2 Build 224 (ActiveState Corp.) based on
Python 2.2.2 (#37, Nov 26 2002, 10:24:37) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> s=time.time();import scipy;print time.time()-s
5.09800004959
>>> ^Z

C:\Documents and Settings\travis>python
ActivePython 2.2.2 Build 224 (ActiveState Corp.) based on
Python 2.2.2 (#37, Nov 26 2002, 10:24:37) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> s=time.time();import scipy;print time.time()-s
1.38199996948
>>>

This is with:
>>> scipy.__version__
'0.2.0_alpha_182.4038'

Hope this provides some insight.

Travis


........................
Travis N. Vaught
Enthought, Inc.
(512)536-1057
http://www.enthought.com
........................


> -----Original Message-----
> From: scipy-user-admin at scipy.net [mailto:scipy-user-admin at scipy.net]
On
> Behalf Of eric jones
> Sent: Thursday, March 13, 2003 8:31 PM
> To: scipy-user at scipy.net
> Subject: RE: [SciPy-user] Newbie question on execution time of import
> scipy
> 
> Hey Seth,
> 
> This is excessive.  I'm not sure why it is so long...
> 
> Using the latest CVS, on a Win XP laptop (2.2 GHz):
> 
> ActivePython 2.2.2 Build 224 (ActiveState Corp.) based on
> Python 2.2.2 (#37, Nov 26 2002, 10:24:37) [MSC 32 bit (Intel)] on
win32
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import time
> >>> s = time.time(); import scipy; print time.time() - s
> 3.01400005817
> 
> It may be the build you are using, but I wouldn't think so.  SciPy
> imports a lot of extensions.  One of them may be slurping up all the
> import time...  You can go into your scipy/__init__.py file (probably
in
> c:\python22\Lib\site-packages\scipy) and start commenting import
> statements out to see if the problem is associated with a particular
> module.
> 
> eric
> 
> -----Original Message-----
> From: scipy-user-admin at scipy.net [mailto:scipy-user-admin at scipy.net]
On
> Behalf Of Fernando Perez
> Sent: Thursday, March 13, 2003 7:57 PM
> To: scipy-user at scipy.net
> Subject: Re: [SciPy-user] Newbie question on execution time of import
> scipy
> 
> 
> > Example:
> >
> >     import time
> >     >>> s = time.time(); import scipy; print time.time() - s
> >     16.6560000181
> >
> >
> > Details on my platform:
> > Win2k
> > CPU = 1.8GHz
> > RAM = 1GB
> > Python =
> > Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on
> win32
> > cipy.__version__ = '0.2.0_alpha_182.4038'
> 
> Well, scipy is large, but I get:
> 
> 
> In [1]: import time
> 
> In [2]: >>> s = time.time(); import scipy; print time.time() - s
> 4.10625100136
> 
> on much less hardware than you (1.1 Ghz PIII laptop, RedHat 8.0
running
> a lot
> of stuff at the same time).  It may be a Windows thing, I guess.
> 
> Cheers,
> 
> f.
> 
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user
> 
> 
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user




More information about the SciPy-User mailing list