-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Reduce pytest's overhead for running tests #401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42): It's a know fact (to me) that pytest's overhead in running tests is larger than with nose or unittest. If we consider just the running of an empty test suite (similar to what Alex posted) there are several contributing factors:
I think it takes about a week of concerted focused effort to realize significant gains. |
@hpk42 as far as i can tell you solved the hook details, i'd like to discuss a way to solve capture soon |
hooks where addressed, with the 2 followups i opened we can close this one |
Originally reported by: Alex Gaynor (BitBucket: alex_gaynor, GitHub: alex_gaynor)
Consider this example:
5000 tests * .001 seconds each = expected about 5 seconds of runtime. Add a second or two for overhead.
On my system this actually takes about 15 seconds. As you add more and more tests, this overhead appears to be linear (10,000 tests takes ~30 seconds).
The text was updated successfully, but these errors were encountered: