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

Reduce runtime of gridding tests #225

Open
sjperkins opened this issue Sep 23, 2020 · 7 comments
Open

Reduce runtime of gridding tests #225

sjperkins opened this issue Sep 23, 2020 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@sjperkins
Copy link
Member

sjperkins commented Sep 23, 2020

  • Codex Africanus version: 0.2.7
  • Python version: 3.6
  • Operating System: Ubuntu 18.04

Description

We've got two new gridders which is great. However, the test suite runtime has increased I guess by a third -- we're now looking at ~18 minutes for testing a single commit. Would it be possible to reduce the data sizes of some of these cases, without losing accuracy?

@sjperkins sjperkins added the enhancement New feature or request label Sep 23, 2020
@landmanbester
Copy link
Collaborator

Woah, what is taking so long? The wgridder tests run in just under a minute on my laptop which I don't think is that bad

@sjperkins
Copy link
Member Author

It's not a train smash because comprehensive tests are a good thing and it's better to have long-running test cases than not. Also, I think a minute is reasonable for a set of functionality.

Looking towards the future, the test suite is only going to take longer so its worthwhile considering how to pare its run time down.

@bennahugo
Copy link
Collaborator

bennahugo commented Sep 23, 2020 via email

@landmanbester
Copy link
Collaborator

Is it now possible to just make tests that need the DFT smaller?

@bennahugo
Copy link
Collaborator

I've halved my runtime. If further optimization is needed I can cache the dft between test cases.

@sjperkins
Copy link
Member Author

I've halved my runtime. If further optimization is needed I can cache the dft between test cases.

This is quite doable with a pytest fixture.

@bennahugo
Copy link
Collaborator

It appears that is deprecated (pytest-dev/pytest#3118) I will need to dump it into a file somewhere

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants