High Velocity JSON
A blazing-fast, zero-CGO JSON library that outperforms encoding/json while maintaining full API compatibility.
| Operation | HVJson | encoding/json | Improvement |
|---|---|---|---|
| Marshal (pointer) | 88.0 ns/op, 0 allocs | 121.6 ns/op, 1 alloc | 27.6% faster |
| Marshal (value) | 118.5 ns/op | 138.2 ns/op | 14.2% faster |
| MarshalTo (zero-copy) | 88.4 ns/op, 0 allocs | N/A | Zero-copy API |
| Unmarshal | 529.4 ns/op | 736.5 ns/op | 28.1% faster |
| Streaming encoder | 195.0 ns/op | N/A | Single write |
Drop-in replacement. Zero CGO. Pure performance.