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

multi: Note benchmarks that perform buffer reuse #155

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

matheusd
Copy link
Contributor

@matheusd matheusd commented Jun 17, 2024

This adds an explicit note for the benchmarks which perform buffer reuse during marshalling operations. This improves fairness when comparing the performance of different benchmarks that may or may not offer this feature.

Given that buffer reuse is a marshalling feature and unsafe string decoding is an unmarshalling feature, for serializers that support both features, they are both coalesced into a single benchmark to avoid unnecessarily increasing the size of the report.

Discussion of need from #148.

This adds an explicit note for the benchmarks which perform buffer reuse
during marshalling operations. This improves fairness when comparing the
performance of different benchmarks that may or may not offer this
feature.

Given that buffer reuse is a marshalling feature and unsafe string
decoding is an unmarshalling feature, for serializers that support both
features, they are both coalesced into a single benchmark to avoid
unnecessarily increasing the size of the report.
Copy link
Owner

@alecthomas alecthomas left a comment

Choose a reason for hiding this comment

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

Awesome, thanks.

@alecthomas alecthomas merged commit 90f5db7 into alecthomas:master Jun 17, 2024
2 of 3 checks passed
@matheusd matheusd deleted the buffer-reuse branch June 17, 2024 21:46
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