5 ms·
This could be useful if only a small subset of the JSON content is needed. It would be interesting to see how it compares when the number of fields grow. One m
by zimbatm 11y ago
This could be useful if only a small subset of the JSON content is needed. It would be interesting to see how it compares when the number of fields grow.
One missing for comparison: https://github.com/ugorji/go/ https://github.com/ugorji/go/
- lobster_johnson 11y agogo-codec is nice, but in my testing I found it to be slower than Go's encoding/json.
- zimbatm 11y agowith the `go generate` version as well ?
- lobster_johnson 11y agoThat I don't know — probably not. Never used it, since my performance issues have always been with raw map[string]interface{} data.
- LeonidBugaev 11y agoI added `codec` to benchmarks, performance gets unpredictable once record complexity grows.
- LeonidBugaev 11y agoThanks will add it to the tests