[Numpy-discussion] Is numpy.test() supposed to be multithreaded?

Ralf Gommers ralf.gommers at gmail.com
Wed Jun 29 03:07:14 EDT 2016


On Wed, Jun 29, 2016 at 3:27 AM, Chris Barker - NOAA Federal <
chris.barker at noaa.gov> wrote:

>
>
>> Now the user is writing back to say, "my test code is fast now, but
>> numpy.test() is still about three times slower than <some other server we
>> don't manage>".  When I watch htop as numpy.test() executes, sure enough,
>> it's using one core
>>
>
> * if numpy.test() is supposed to be using multiple cores, why isn't it,
>> when we've established with other test code that it's now using multiple
>> cores?
>>
>
> Some numpy.linalg functions (like np.dot) will be using multiple cores,
> but np.linalg.test() takes only ~1% of the time of the full test suite.
> Everything else will be running single core. So your observations are not
> surprising.
>
>
> Though why it would run slower on one box than another comparable box is a
> mystery...
>

Maybe just hardware config? I see a similar difference between how long the
test suite runs on TravisCI vs my linux desktop (the latter is slower,
surprisingly).

Ralf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20160629/56c1ee55/attachment.html>


More information about the NumPy-Discussion mailing list