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

Get more consistent distributions in parallel scenarios test #8451

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

abadams
Copy link
Member

@abadams abadams commented Oct 30, 2024

Note that this is not denoising the individual runtimes. The point of the test is to measure a distribution of runtimes for a variety of scenarios. This PR takes more samples for each distribution, and spreads the samples out over time to dodge transitory OS stuff by interleaving different test scenarios.

I also tweaked some of the scenarios to be more useful, and reported actual deciles so that the median is actually there.

const int memory_limit = m ? max_memory : 128;

auto now = std::chrono::high_resolution_clock::now;
auto to_ns = [](auto delta) { return 1e9 * std::chrono::duration<float>(delta).count(); };
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick: 1e9 is a double, so the lambda returns a double. Either 1e9f, or the results vector should become double.

@steven-johnson
Copy link
Contributor

ready to land?

@abadams
Copy link
Member Author

abadams commented Nov 18, 2024

Looks like there was a merge conflict to fix. Apart from that, assuming everything goes green, yes

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