Fast and simple JSON parser for Go
Package sjson provides decoding of JSON Text as defined in ECMA-404. Sjson designed to be fast and simple, for now it supports only dynamic deserialization. Simple benchmark shows ~2x speedup against encoding/json standard parser.
$ go test -bench=Sample\|Code -benchtime=5s
BenchmarkSample_sjson 1000000 7582 ns/op 87.43 MB/s // Equivalent of our production JSON
BenchmarkSample__json 300000 19579 ns/op 33.86 MB/s
BenchmarkCode_sjson 300 28384877 ns/op 68.36 MB/s // JSON Text from the encoding/json package
BenchmarkCode__json 100 60002297 ns/op 32.34 MB/s
Some useful links.
- http://json.org - Info about JSON
- https://metacpan.org/pod/JSON%3A%3AXS - JSON::XS Perl module
Development of the project was sponsored by CP Decision Limited as part of a project on processing statistical data.
Some ideas was borrowed from excellent Marc A. Lehmanns JSON::XS code.
Licensed in terms of MIT license (see https://github.com/vovkasm/go-sjson/blob/master/LICENSE.md file).