question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Test too slow: test_mean_shift.py::test_parallel

See original GitHub issue

This test is waaay to slow (about the same time as the next 4 slowest tests together, which are also too slow): Travis says

64.80s call     sklearn/cluster/tests/test_mean_shift.py::test_parallel

The core of the tests doesn’t seem like it has been touched since #5189 by @GaelVaroquaux but I don’t remember the test being so slow back then (I’ll confirm though).

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

3reactions
GaelVaroquauxcommented, Jun 4, 2018

So the number of thread will grow as n_jobs**2. Not sure that’s the issue but I guess this is not intended.

Ha, I fixed that last week in joblib: https://github.com/joblib/joblib/pull/690

0reactions
amuellercommented, Aug 14, 2019

this is fixed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does pytest-xdist make my tests run slower, not faster?
When parallelized may be slower: total test duration is quite slow (under 2minutes) - bootraping pytest workers adds extra time, if that is ......
Read more >
Running tests in parallel is not any faster than without pytest ...
I have no idea what is going on here, but no matter how I run the tests, I'm not getting them to run...
Read more >
Test Parallelization Using Python and Pytest
Our tests should pass in 16.91 seconds— not too slow for a battery of five UI tests. However, we can speed it up....
Read more >
Testing - Hugging Face
As mentioned earlier make test runs tests in parallel via pytest-xdist plugin ( -n X ... For example, if a test is slow...
Read more >
Pytest - Run Tests in Parallel - Tutorialspoint
Learn Pytest From Scratch​​ By default, pytest runs tests in sequential order. In a real scenario, a test suite will have a number...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found