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

Improve Benchmark - Avoid Benchmark.Net [GlobalSetup] when is not needed. #2039

Draft
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

rafaelsc
Copy link
Contributor

@rafaelsc rafaelsc commented Apr 2, 2024

  • Use class constructor instead of Benchmark.Net [GlobalSetup].
  • Use C# collection expression. (Code will be easy to read and most of time gives a better performance)
  • Remove needed null! after changing to class constructor.
  • Move some value initialization to static constructor.

@rafaelsc rafaelsc marked this pull request as draft May 28, 2024 05:34
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.

None yet

1 participant