-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Performance regression with skipped tests since pytest 8.0.0 #12608
Comments
Thanks for the clear reproducer! Bisected to:
I think there might be another commit after that were it got even slower, but that commit made it go from 0.5s to >6s on my machine. cc @bluetech |
I'm not near a computer, but is it also slow on main? I will take a look when I get a chance, should be an easy fix (though I think we already fixed it)
On Sun, Jul 14, 2024, at 17:04, Florian Bruhin wrote:
Thanks for the clear reproducer! Bisected to:
`commit 9d0ddb4
Author: Ran Benita ***@***.***>
Date: Fri Jul 14 10:35:18 2023 +0300
fixtures: change `FixtureDef.cached_result[2]` from exception triplet to exception
Fix #11208.
`
… • #11208 <#11208>
• #11209 <#11209>
I think there might be another commit after that were it got even slower, but that commit made it go from 0.5s to >6s on my machine.
cc @bluetech <https://github.com/bluetech>
—
Reply to this email directly, view it on GitHub <#12608 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAJKW7UKWGETWK4HLC3BOF3ZMKAQJAVCNFSM6AAAAABK3FG4BGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRXGM3DCMBUGI>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Ah, indeed I didn't try that. Already fixed here indeed:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's a significant CPU overhead when processing the results of a skipped test, depending on stack size when you call
pytest.skip
.The following code takes
0.78s
for pytest 7.4.4 and23.93s
for pytest 8.2.2pip list:
Environment for tests: Windows 11 with Python 3.13.0b2
Bug was originally identified on GHA Linux, Python 3.10, 3.11 and 3.12, then confirmed on Windows + Python 3.11.
The text was updated successfully, but these errors were encountered: