Skip to content

vovkasm/go-sjson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-sjson

GoDoc

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

Links

Some useful links.

Thanks

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.

License

Licensed in terms of MIT license (see https://github.com/vovkasm/go-sjson/blob/master/LICENSE.md file).

About

Fast and simple JSON parser for Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages