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

benchs: detect runtime leaks #345

Merged
merged 1 commit into from
May 9, 2024
Merged

benchs: detect runtime leaks #345

merged 1 commit into from
May 9, 2024

Conversation

fwbrasil
Copy link
Collaborator

@fwbrasil fwbrasil commented May 9, 2024

It's easy to make mistakes in benchmarks that end up initializing targets other than the one being tested. For example, if Bench.zioRuntime were a val instead of lazy val, all benchmarks would run with ZIO's runtime initialized, including its threads. This kind of mistake can introduce significant noise in the benchmarks.

@fwbrasil
Copy link
Collaborator Author

fwbrasil commented May 9, 2024

Merging to create a follow up PR.

@fwbrasil fwbrasil merged commit 036f85e into main May 9, 2024
3 checks passed
@fwbrasil fwbrasil deleted the test-bench-runtime-leak branch May 14, 2024 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant