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.
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.