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

tools/compare: don't actually discard valid (but zero) pvalue #1733

Merged
merged 3 commits into from
Jan 8, 2024

Conversation

LebedevRI
Copy link
Collaborator

This is a bit embarrassing.

The test added in middle commit does not produce a pvalue,
because the pvalue is 0. Duh!

@LebedevRI LebedevRI requested a review from dmah42 January 6, 2024 23:32
Comment on lines 1508 to 1509
json1["benchmarks"] = [json1["benchmarks"][0]
for i in range(1000)]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I assume we don't want a .json with 10k lines? :)

It's rather completely non-human-readable otherwise.
I can't imagine the filesize really matters,
and if it does, it should just be compressed later on.
So, this is embarressing. For a very large number of repetitions,
we can end up with pvalue of a true zero, and it obviously compares false,
and we treat it as-if we failed to compute it...
@dmah42
Copy link
Member

dmah42 commented Jan 8, 2024

good catch. thanks!

@dmah42 dmah42 merged commit 96d820f into google:main Jan 8, 2024
80 checks passed
@LebedevRI LebedevRI deleted the tools branch January 8, 2024 13:00
@LebedevRI
Copy link
Collaborator Author

@dmah42 thank you!

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.

2 participants