Fast JSON encoder/decoder compatible with encoding/json for Go
Go to file
Masaaki Goshima 3e814f749f Support encoding of slice 2020-04-19 23:13:24 +09:00
LICENSE Initial commit 2020-04-19 18:32:37 +09:00
README.md Add benchmark 2020-04-19 20:27:56 +09:00
benchmark_test.go Add benchmark 2020-04-19 20:27:56 +09:00
encode.go Support encoding of slice 2020-04-19 23:13:24 +09:00
encode_string.go Add encoder 2020-04-19 19:51:22 +09:00
encode_test.go Support encoding of slice 2020-04-19 23:13:24 +09:00
error.go Add encoder 2020-04-19 19:51:22 +09:00
go.mod Add benchmark 2020-04-19 20:27:56 +09:00
go.sum Add benchmark 2020-04-19 20:27:56 +09:00
json.go Add encoder 2020-04-19 19:51:22 +09:00

README.md

go-json

Fast JSON encoder/decoder compatible with encoding/json for Go

Benchmarks

$ go test -bench .
goos: darwin
goarch: amd64
pkg: github.com/goccy/go-json
Benchmark_jsoniter-12            5000000               377 ns/op              56 B/op          2 allocs/op
Benchmark_gojay-12               5000000               273 ns/op             512 B/op          1 allocs/op
Benchmark_gojson-12              5000000               242 ns/op              48 B/op          1 allocs/op
PASS
ok      github.com/goccy/go-json        5.392s