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

xdr and support/db: Minor benchmark code quality improvements #4093

Merged
merged 2 commits into from
Nov 23, 2021

Conversation

2opremio
Copy link
Contributor

It includes a leftover from #4086

@@ -41,6 +41,7 @@ func BenchmarkXDRUnmarshalWithReflection(b *testing.B) {
r bytes.Reader
te xdr.TransactionEnvelope
)
b.ReportAllocs()
Copy link
Contributor

Choose a reason for hiding this comment

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

nice!! I didn't know about b.ReportAllocs

@2opremio
Copy link
Contributor Author

@tamirms PTAL

@2opremio 2opremio merged commit 17a2e98 into stellar:master Nov 23, 2021
@2opremio 2opremio deleted the refine-benchmarks branch November 23, 2021 14:42
erika-sdf pushed a commit to erika-sdf/go that referenced this pull request Dec 3, 2021
…r#4093)

* Minor benchmark code quality improvements

* Address review feedback
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