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

(tests) Make BinaryOperatorDataTests faster #332

Merged
merged 1 commit into from
May 14, 2022

Conversation

perlun
Copy link
Collaborator

@perlun perlun commented May 14, 2022

I've noted lately that some of the tests now take a noticeable time to execute. The fact that commonly used test values like 4294967295 was being evaluated over and over again was perhaps good for stress-testing the concurrency handling in the Perlang interpreter 😉 but pretty stupid from any other point of view.

Caching these evaluated values brings the execution for these tests down from about ~25s to about 2-3s on my machine, which is a nice small step to retain very fast execution of our test suite.

@perlun perlun added enhancement New feature or request tests This issue is related to unit/integration tests labels May 14, 2022
@perlun perlun added this to the 0.2.0 milestone May 14, 2022
@perlun perlun force-pushed the tests/make-BinaryOperatorDataTests-faster branch from 623fa46 to 5bb490f Compare May 14, 2022 21:16
@perlun perlun changed the title (tests) Make BinaryOperatorDataTests faster (tests) Make BinaryOperatorDataTests faster May 14, 2022
@perlun perlun merged commit 46e52cb into master May 14, 2022
@perlun perlun deleted the tests/make-BinaryOperatorDataTests-faster branch May 14, 2022 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request tests This issue is related to unit/integration tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant