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 a bug in benchmark code. #2989

Merged
merged 3 commits into from
Aug 21, 2019
Merged

Fix a bug in benchmark code. #2989

merged 3 commits into from
Aug 21, 2019

Conversation

easwars
Copy link
Contributor

@easwars easwars commented Aug 21, 2019

Total number of Allocs and AllocedBytes retrieved from
runtime.Memstats() were not being divided by the number of completed
operations during the benchmark run, to get the correct number of
Allocs/op and Bytes/op.

Total number of Allocs and AllocedBytes retrieved from
runtime.Memstats() were not being divided by the number of completed
operations during the benchmark run, to get the correct number of
Allocs/op and Bytes/op.
@easwars easwars requested a review from canguler August 21, 2019 15:57
Copy link

@canguler canguler left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@canguler canguler left a comment

Choose a reason for hiding this comment

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

I think float64s are messing up the formatting when benchresult prints the results. Can you fix that?

@easwars
Copy link
Contributor Author

easwars commented Aug 21, 2019

Done. Thanks.

@easwars
Copy link
Contributor Author

easwars commented Aug 21, 2019

This should be better.

Copy link

@canguler canguler left a comment

Choose a reason for hiding this comment

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

LGTM

@easwars easwars merged commit 6fb38bd into grpc:master Aug 21, 2019
@easwars easwars deleted the bench branch September 9, 2019 16:10
@lock lock bot locked as resolved and limited conversation to collaborators Mar 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants