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

fix: Support sub-nanosecond precision on Cargo benchmarks #243

Closed
wants to merge 1 commit into from

Conversation

blaine-arcjet
Copy link
Contributor

In rust-lang/rust#124774, Rust changed the output of benchmarks to contain sub-nanosecond precision. This was first published in nightly-2024-05-11 which started breaking CI that used github-action-benchmark since it couldn't find any benchmarks in an output file.

@ktrz
Copy link
Member

ktrz commented May 16, 2024

Thank you for this fix @blaine-arcjet. Could you please add a test case that fails without this?

@blaine-arcjet
Copy link
Contributor Author

@ktrz I believe the "Rust Example" already in CI will fail if you run it because it pulls the latest nightly

@ktrz
Copy link
Member

ktrz commented May 19, 2024

Hi @blaine-arcjet

I've added another test case to unit tests in #246 and found one more issue with parsing number as int instead of float. Now the full precision is stored in benchmarks.
Closing this PR as I couldn't push back to it and created a new one.
Thank you for your contribution! 🙇🏼

@ktrz ktrz closed this May 19, 2024
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.

Support sub-nanosecond precision on Cargo benchmarks
2 participants