Skip to content
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

WIP: unittests speedup #604

Merged
merged 3 commits into from
Dec 28, 2023
Merged

WIP: unittests speedup #604

merged 3 commits into from
Dec 28, 2023

Conversation

FBruzzesi
Copy link
Collaborator

Description

I was playing around for some features and while iterating I was getting bored of waiting for tests.
Thus running pytest . --durations 30 --disable-warnings I could get the most time consuming tests.

The code changes keep the same level of coverage but lower the runtime.

I opened a PR in my own fork to quantify the difference and it is quite nice (4m 14s vs last merge here of 7m 37s).

I didn't investigate much further, but since it was a bit relevant for me I wanted to share it.

@FBruzzesi FBruzzesi changed the title WIP unittests speedup WIP: unittests speedup Dec 28, 2023
Copy link
Owner

@koaning koaning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hah! Interesting, I remember getting to a similar conclusion a few years ago when I tried making these tests faster. I wrote pytest duration insights for a use-case at Rasa which I then ran on this codebase. But yeah, making UMAP tests a bunch faster is an easy accept in my book.

@koaning koaning merged commit af1593c into koaning:main Dec 28, 2023
13 of 14 checks passed
@FBruzzesi
Copy link
Collaborator Author

Love to hear that!
To be fair, the best improvement comes from not generating the splits in the grouped time series cv, but running its "raising warning" method as standalone

@FBruzzesi FBruzzesi deleted the patch/tests-speedup branch December 28, 2023 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants