Closed x448 closed 1 year ago
This will show toarray
and keyasint
features shrinking encoded data size.
I can simulate the keyasint
feature for encoding/json. Didn't see any struct tags for encoding/gob.
@x448 This is a great idea. However, I'm closing this (for now) so we can revisit and maybe reopen after v2.5.0 is released.
Comparisons in README can require time to update when any codec compared is updated.
Lack of time to update the README can be the only blocker to a new release being tagged, so we should reduce size of README first by removing or updating outdated comparisons that already exist.
Benchmark comparisons to Go standard library codecs are missing.
Let's add benchmark comparisons of fxamacker/cbor, encoding/gob, and encoding/json.
Encoded size comparisons are important for some use cases. Use simple table if there isn't enough time for charts. Make it readable on phone (I wish I had this available on my phone yesterday).
Use a common data struct with realistic values for comparison.
UPDATE: something like this...
keyasint
tags.keyasint
struct tag (or equivalent). P = b.RunParallel().benchstat
ongo test -bench=. -count=20
.