justjson
justjson copied to clipboard
serialization benchmarks
If you're up to it might participate here: https://github.com/djkoloski/rust_serialization_benchmark
Also I would hope they also list wasm and no_std/heapless compatibility.. maybe I should start create a new list or smth :woman_shrugging:
So I actually wasn't sure if I was going to go as far as serializing into Rust structures with this crate. I know I can optionally add serde and implement a Value -> T deserialization pass, but I would argue almost anyone who is doing that is better off using serde-json in the first place!
I've been thinking a lot about how to better benchmark this crate. I don't have any benchmarks testing its main premise: it's faster to iterate and filter over the lazy representation than it is to decode the whole payload first. I know it won't always be true, the question is: is it ever faster or is this just a good way to parse JSON with a limited number of allocations?