Fast JSON encoder/decoder compatible with encoding/json for Go
Go to file
Masaaki Goshima b2f2a20f65 Remove debug code 2020-04-25 22:49:37 +09:00
LICENSE Initial commit 2020-04-19 18:32:37 +09:00
README.md Update README.md 2020-04-24 22:02:46 +09:00
benchmark_test.go Add UnmarshalNoEscape 2020-04-24 21:57:11 +09:00
decode.go Add decoder for map type 2020-04-25 22:48:16 +09:00
decode_array.go Add decoder for Array or Slice type 2020-04-25 19:55:05 +09:00
decode_bool.go Refactor decoder 2020-04-24 01:39:20 +09:00
decode_context.go Refactor decoder 2020-04-24 01:39:20 +09:00
decode_float.go Add decoder of float 2020-04-24 16:46:12 +09:00
decode_int.go Improve performance at decoding 2020-04-24 14:07:33 +09:00
decode_map.go Remove debug code 2020-04-25 22:49:37 +09:00
decode_ptr.go Add reflect.rtype trick 2020-04-24 20:23:26 +09:00
decode_slice.go Add decoder for Array or Slice type 2020-04-25 19:55:05 +09:00
decode_string.go Improve performance at decoding 2020-04-24 14:07:33 +09:00
decode_struct.go Improve performance at decoding 2020-04-24 14:07:33 +09:00
decode_test.go Add decoder for map type 2020-04-25 22:48:16 +09:00
decode_uint.go Improve performance at decoding 2020-04-24 14:07:33 +09:00
encode.go Add reflect.rtype trick 2020-04-24 20:23:26 +09:00
encode_string.go Fix public interface for encoding/json 2020-04-21 14:19:50 +09:00
encode_test.go Fix helper of testing 2020-04-24 20:48:15 +09:00
error.go Add decoder 2020-04-22 13:06:52 +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
helper_test.go Fix helper of testing 2020-04-24 20:48:15 +09:00
json.go Add UnmarshalNoEscape 2020-04-24 21:57:11 +09:00
rtype.go Add UnmarshalNoEscape 2020-04-24 21:57:11 +09:00

README.md

go-json

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

Status

WIP

Benchmarks

$ go test -bench .
goos: darwin
goarch: amd64
pkg: github.com/goccy/go-json
Benchmark_Encode_jsoniter-12             5000000               377 ns/op              56 B/op          2 allocs/op
Benchmark_Encode_gojay-12                5000000               273 ns/op             512 B/op          1 allocs/op
Benchmark_Encode_gojson-12              10000000               217 ns/op              48 B/op          1 allocs/op
Benchmark_Decode_jsoniter-12             2000000               856 ns/op             208 B/op         13 allocs/op
Benchmark_Decode_gojay-12                3000000               548 ns/op             256 B/op          2 allocs/op
Benchmark_Decode_gojson-12               3000000               522 ns/op             256 B/op          2 allocs/op
Benchmark_Decode_gojson_noescape-12      3000000               470 ns/op             144 B/op          1 allocs/op
PASS
ok      github.com/goccy/go-json        15.120s

License

MIT