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

misc(proto): convert int32's into DoubleValue in proto #6332

Merged
merged 4 commits into from
Oct 18, 2018

Conversation

exterkamp
Copy link
Member

Summary
Benchmark index is actually a double! Not an int!

Related Issues/PRs
fixes: #6331

@exterkamp exterkamp changed the title misc(proto): convert benchmark_index to double. misc(proto): convert benchmark_index to double Oct 17, 2018
Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

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

FWIW I'd be on board rounding off the benchmark to nearest int before returning/using, no sense in shipping these extra precision bytes :)

brendankenny
brendankenny previously approved these changes Oct 17, 2018
Copy link
Member

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

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

LGTM 📏📏

proto/sample_v2_round_trip.json Show resolved Hide resolved
@brendankenny
Copy link
Member

I like @patrickhulce's idea better if the slowest devices really are more on the order of 10-100

Copy link
Member

@paulirish paulirish left a comment

Choose a reason for hiding this comment

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

double all the things!

@exterkamp exterkamp changed the title misc(proto): convert benchmark_index to double misc(proto): convert int32's into DoubleValue in proto Oct 17, 2018
lighthouse-core/runner.js Outdated Show resolved Hide resolved
Copy link
Member

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

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

LGTM 📍

@paulirish paulirish merged commit 3b33497 into master Oct 18, 2018
@paulirish paulirish deleted the bug/benchmark_index branch October 18, 2018 00:14
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.

Benchmark Index can cause a proto unmarshalling error.
4 participants