alecthomas / go_serialization_benchmarks

Benchmarks of Go serialization methods
https://alecthomas.github.io/go_serialization_benchmarks/
1.56k stars 158 forks source link

multi: Note benchmarks that perform buffer reuse #155

Closed matheusd closed 3 months ago

matheusd commented 3 months ago

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.