-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
I just did a quick benchmark of zipson vs various serialisers + compressors.
The results are (length in bytes, time in ms, 100 iterations to warmup and 100 iterations to measure):
┌─────────┬───────────────────┬────────┬─────────────────────┬──────────────────────┐
│ (index) │ name │ length │ encodeTime │ decodeTime │
├─────────┼───────────────────┼────────┼─────────────────────┼──────────────────────┤
│ 0 │ 'zipson brotli' │ 417 │ 2.52860035 │ 0.12007231 │
│ 1 │ 'zipson deflate' │ 475 │ 0.20293473999999997 │ 0.11486058 │
│ 2 │ 'msgpack brotli' │ 576 │ 3.92180084 │ 0.05375433 │
│ 3 │ 'json brotli' │ 599 │ 4.567029679999999 │ 0.07787885 │
│ 4 │ 'msgpack deflate' │ 627 │ 0.2011609 │ 0.06081639 │
│ 5 │ 'zipson lz4' │ 642 │ 0.38702751 │ 0.6388705200000001 │
│ 6 │ 'msgpack lz4' │ 690 │ 0.6580354100000001 │ 0.6165729 │
│ 7 │ 'json deflate' │ 711 │ 0.10077317999999999 │ 0.053146879999999994 │
│ 8 │ 'zipson' │ 1121 │ 0.14132796 │ 0.09936688 │
│ 9 │ 'json lz4' │ 1123 │ 0.13947896 │ 0.47471737 │
│ 10 │ 'msgpack' │ 1640 │ 0.09119614 │ 0.03184669 │
│ 11 │ 'json' │ 2328 │ 0.02867283 │ 0.02063535 │
└─────────┴───────────────────┴────────┴─────────────────────┴──────────────────────┘
So, zipson combined with deflate is fast and saves a lot of storage!
For the sake of our climate, you should continue your great work!!!
merocode-com, derolf, totojack, elderapo, thatisuday and 5 more
Metadata
Metadata
Assignees
Labels
No labels