Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

[tests] Speed up TestWizardModel #3604

Merged
merged 1 commit into from
Apr 19, 2021
Merged

[tests] Speed up TestWizardModel #3604

merged 1 commit into from
Apr 19, 2021

Conversation

stephenroller
Copy link
Contributor

Patch description
These tests were slow, so just make them do less computation.

Testing steps

Before:

$ pytest tests/nightly/gpu/test_wizard.py -k test_end2end
434.96s call     tests/nightly/gpu/test_wizard.py::TestWizardModel::test_end2end
32.39s setup    tests/nightly/gpu/test_wizard.py::TestWizardModel::test_end2end

$ pytest tests/nightly/gpu/test_wizard -k test_retrieval
39.39s call     tests/nightly/gpu/test_wizard.py::TestWizardModel::test_retrieval
31.89s setup    tests/nightly/gpu/test_wizard.py::TestWizardModel::test_retrieval

After:

40.47s call     tests/nightly/gpu/test_wizard.py::TestWizardModel::test_end2end
36.70s call     tests/nightly/gpu/test_wizard.py::TestWizardModel::test_retrieval

@stephenroller stephenroller requested a review from jxmsML April 17, 2021 19:22
@stephenroller stephenroller changed the title Speed up TestWizardModel [tests] Speed up TestWizardModel Apr 18, 2021
@stephenroller stephenroller merged commit 334faae into master Apr 19, 2021
@stephenroller stephenroller deleted the speed_test_wizard branch April 19, 2021 20:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants