Skip to content

add benchmark functions #9

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

Merged
merged 1 commit into from
May 27, 2025
Merged

add benchmark functions #9

merged 1 commit into from
May 27, 2025

Conversation

hkBst
Copy link
Member

@hkBst hkBst commented May 27, 2025

No description provided.

@hkBst hkBst mentioned this pull request May 27, 2025
@hkBst
Copy link
Member Author

hkBst commented May 27, 2025

This is failing because of using nightly test feature (for bench functionality). Should we allow this or should we use something else, maybe criterion? Or is there another way?

@GuillaumeGomez
Copy link
Member

To avoid this problem, create a new benches folder in which you put the benches. There you can put the #![feature(test)]. Done this way, the crate itself won't require nightly to build so all good. :)

@GuillaumeGomez
Copy link
Member

This is great, thanks a lot! Now summoning someone who can actually merge. XD

cc @Urgau

@Urgau
Copy link
Member

Urgau commented May 27, 2025

Looks fine to me, but didn't do a deep dive into all the benches, I trust @GuillaumeGomez did it.

One tough: it would be good to check those benches in CI.

@Urgau Urgau merged commit 16ab1b7 into rust-lang:main May 27, 2025
1 check passed
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