Skip to content

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants