alecthomas / go_serialization_benchmarks

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

goserbench: Initial Version #139

Closed matheusd closed 3 months ago

matheusd commented 3 months ago

This moves the actual benchmarking code into a new, isolated package. Minimal changes are made to the existing serializers in order to keep the tests working.

In the future, this will allow moving each serializer into its own package, improving overall code organization and making it clearer what code is related to each serializer.

It will also allow creating a module out of the base benchmark code, which will allow third party code (e.g. serializer packages themselves) to run the same benchmark without having to be ported to this repository.