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

Mg/setup measurement error #11

Merged
merged 3 commits into from
Sep 2, 2024
Merged

Mg/setup measurement error #11

merged 3 commits into from
Sep 2, 2024

Conversation

MarcusGrass
Copy link
Contributor

@MarcusGrass MarcusGrass commented Sep 2, 2024

Checklist

  • I have read the Contributor Guide
  • I have read and agree to the Code of Conduct
  • I have added a description of my changes and why I'd like them included in the section below

Description of Changes

  1. Reduce measument error on benches with a setup, clean up lints, fixup deny.toml
  2. Ceil calculated iterations to 5B, otherwise the number of iterations can approach infinity and the bench would never complete

Related Issues

Fixes #10

@@ -86,12 +86,15 @@ pub fn bench_with_configuration_labeled<T, F: FnMut() -> T>(

fn calculate_iters_and_total_iters(
cfg: &BenchmarkConfig,
mean_execution_time: f64,
mut mean_execution_time: f64,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

call the argument mean_execution_time_ns?

Copy link
Member

@jnises jnises left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@MarcusGrass MarcusGrass requested a review from jnises September 2, 2024 07:57
@MarcusGrass
Copy link
Contributor Author

@jnises Thanks, could you have another quick peek at the last commit? Realized it's pretty easy to batch and prevent the ram explosion. It didn't affect the measurement overhead in any noticable way either

@MarcusGrass MarcusGrass merged commit f6e4c9f into main Sep 2, 2024
6 checks passed
@MarcusGrass MarcusGrass deleted the mg/setup-measurement-error branch September 2, 2024 08:44
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.

Potential timing issue
2 participants