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

Migrate benchmarks to criterion? #286

Open
ysimonson opened this issue Mar 1, 2023 · 2 comments
Open

Migrate benchmarks to criterion? #286

ysimonson opened this issue Mar 1, 2023 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@ysimonson
Copy link
Member

This would pull in another dependency, but it's maybe worthwhile:

  • The benchmarks could be run on stable
  • It would generate better stats
  • Results can be graphed
  • It would be easier to compare branches
@ysimonson ysimonson added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Mar 1, 2023
@lightsing
Copy link
Contributor

Yes, I noticed this too. Current bench method cannot seperate "setup" and "bench" code.

I'm not sure how to migrate the macro part like full_bench_impl to criterion.

@ysimonson
Copy link
Member Author

Yeah if the two can't be combined, that would be a show-stopper.

Maybe it's possible with a combination of OnceCell and bench_with_input, where the former holds a vec of closures that construct databases with different underlying datastores. But that's pretty nasty.

@ysimonson ysimonson removed the good first issue Good for newcomers label Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants