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

Faster tests #98

Merged
merged 5 commits into from
Nov 2, 2021
Merged

Faster tests #98

merged 5 commits into from
Nov 2, 2021

Conversation

schneems
Copy link
Collaborator

@schneems schneems commented Nov 2, 2021

Reduce total test time from 4.71 to 1.76 seconds.

This is the slowest test in the suite, taking longer than 1 second. I had the logic duplicated for some weird reason, removing that got me twice as fast. Since we need to boot 2 processes (the slow process), we can spawn them both before waiting on the first one to finish.
Total test time is now 3.78
Booting processes is slow. Total test time is now 3.37
Shelling out to the executable is very expensive. Moving this logic into the class means we can unit test it which is much faster.

Total test time is now 1.72 seconds
@schneems schneems merged commit 3f3ac9e into main Nov 2, 2021
@schneems schneems deleted the schneems/faster-tests branch November 2, 2021 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant