mirror of
https://github.com/ii64/sonic.git
synced 2026-06-21 00:46:43 +08:00
doc: update README.md (#31)
Co-authored-by: Oxygen <chenzhuoyu@users.noreply.github.com>
This commit is contained in:
parent
4e02b5b2fe
commit
8fe152d152
1 changed files with 7 additions and 2 deletions
|
|
@ -10,8 +10,8 @@ For all sizes of json and all scenes of usage, Sonic performs almost best.
|
|||

|
||||
- [Large](https://github.com/bytedance/sonic/blob/main/testdata/twitterescaped.json) (550KB, 10000+ key, 6 levels)
|
||||

|
||||
|
||||
For a 13KB [TwitterJson](https://github.com/bytedance/sonic/blob/main/decoder/testdata_test.go#L19), Sonic is **1.5x** faster than [json-iterator](https://github.com/json-iterator/go) in decoding, **2.5x** faster in encoding.
|
||||
- [Medium](https://github.com/bytedance/sonic/blob/main/decoder/testdata_test.go#L19) (13KB, 300+ key, 6 levels)
|
||||
For a 13KB TwitterJson, Sonic is **1.5x** faster than [json-iterator](https://github.com/json-iterator/go) in decoding, **2.5x** faster in encoding.
|
||||
|
||||
```powershell
|
||||
goos: darwin
|
||||
|
|
@ -40,6 +40,11 @@ BenchmarkDecoder_Binding_GoJson-16 100000 337
|
|||
```
|
||||
More detail see [decoder/decoder_test.go](https://github.com/bytedance/sonic/blob/main/decoder/decoder_test.go), [encoder/encoder_test.go](https://github.com/bytedance/sonic/blob/main/encoder/encoder_test.go), [ast/search_test.go](https://github.com/bytedance/sonic/blob/main/ast/search_test.go), [ast/parser_test.go](https://github.com/bytedance/sonic/blob/main/ast/parser_test.go)
|
||||
|
||||
## Requirement
|
||||
- Go 1.15/1.16
|
||||
- Linux/darwin OS
|
||||
- Amd64 CPU with AVX/AVX2 instruction set
|
||||
|
||||
## Usage
|
||||
|
||||
### Marshal/Unmarshal
|
||||
|
|
|
|||
Loading…
Reference in a new issue