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

states vs replace atoms benchmark #415

Merged
merged 3 commits into from
Sep 1, 2023
Merged

states vs replace atoms benchmark #415

merged 3 commits into from
Sep 1, 2023

Conversation

Necr0x0Der
Copy link
Collaborator

No description provided.

@vsbogd
Copy link
Collaborator

vsbogd commented Aug 29, 2023

@luketpeterson , which micro-benchmarking framework do you use? Does it support benchmark parameters? As far as I understand bench doesn't support it and thus we ended up introducing xN functions and comparing their values manually. Probably we should move to another benchmark framework, criterion.rs looks like a good candidate from parameterization perspective.

@vsbogd vsbogd requested a review from luketpeterson August 29, 2023 16:55
@Necr0x0Der
Copy link
Collaborator Author

Yes, I might need to mark this PR as draft, because I had the same question.

@luketpeterson
Copy link
Contributor

@luketpeterson , which micro-benchmarking framework do you use?

I have used criterion, and it worked pretty well for me. I can't comment specifically on parameterization however. It looks like a new maintainer has taken it over and v. 0.5 was released , which is good because I was worried for a while that it may have been on the path to be abandoned.

The one thing I'll say is that it is heavy so it definitely needs to be a dev-only dependency.

@Necr0x0Der
Copy link
Collaborator Author

@luketpeterson , I'dd prefer to merge it as is for now if there are no strong objections, and refactor later when a better approach for benchmarking is selected.

@luketpeterson
Copy link
Contributor

Sure. We can redo the benchmark framework in the future. Merging.

@luketpeterson luketpeterson merged commit c5a0f7f into main Sep 1, 2023
@vsbogd vsbogd deleted the benchstate branch September 1, 2023 08:59
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.

3 participants