Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support streaming IO #225

Merged
merged 9 commits into from
May 24, 2022
Merged

feat: support streaming IO #225

merged 9 commits into from
May 24, 2022

Conversation

AsterDY
Copy link
Collaborator

@AsterDY AsterDY commented May 10, 2022

Benchmark

  • decoder
goos: darwin
goarch: amd64
pkg: github.com/bytedance/sonic/decoder
cpu: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
BenchmarkDecodeStream_Sonic/single-16    1000000             859.3 ns/op            2114 B/op          8 allocs/op
BenchmarkDecodeStream_Sonic/double-16    1000000              2594 ns/op            8774 B/op         15 allocs/op
BenchmarkDecodeStream_Sonic/halt-16      1000000              6007 ns/op            3261 B/op         15 allocs/op
BenchmarkDecodeStream_Std/single-16      1000000              6199 ns/op            2840 B/op         14 allocs/op
BenchmarkDecodeStream_Std/double-16      1000000             11342 ns/op            2920 B/op         19 allocs/op
BenchmarkDecodeStream_Std/halt-16        1000000             11358 ns/op            2984 B/op         16 allocs/op
BenchmarkDecodeStream_Jsoniter/single-16 1000000              4886 ns/op            4168 B/op         21 allocs/op
BenchmarkDecodeStream_Jsoniter/double-16 1000000              9469 ns/op            7288 B/op         34 allocs/op
BenchmarkDecodeStream_Jsoniter/halt-16   1000000              8218 ns/op            4312 B/op         23 allocs/op
  • encoder
goarch: amd64
pkg: github.com/bytedance/sonic/encoder
cpu: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
BenchmarkEncodeStream_Sonic/single-16            1000000              1219 ns/op            4412 B/op          5 allocs/op
BenchmarkEncodeStream_Sonic/double-16            1000000              2425 ns/op            8723 B/op         11 allocs/op
BenchmarkEncodeStream_Sonic/compatible-16        1000000              3888 ns/op            1535 B/op          6 allocs/op
BenchmarkEncodeStream_Std/single-16              1000000              5195 ns/op             456 B/op         10 allocs/op
BenchmarkEncodeStream_Std/double-16              1000000             10586 ns/op             913 B/op         20 allocs/op
BenchmarkEncodeStream_Std/compatible-16          1000000              5024 ns/op             456 B/op         10 allocs/op
BenchmarkEncodeStream_Jsoniter/single-16         1000000              2899 ns/op            1280 B/op          4 allocs/op
BenchmarkEncodeStream_Jsoniter/double-16         1000000              5937 ns/op            2561 B/op          8 allocs/op
BenchmarkEncodeStream_Jsoniter/compatible-16     1000000              3486 ns/op            3743 B/op          9 allocs/op

@AsterDY AsterDY marked this pull request as draft May 10, 2022 06:46
@AsterDY AsterDY force-pushed the feat/stream branch 2 times, most recently from 70e939b to b164c45 Compare May 10, 2022 13:47
@AsterDY AsterDY changed the title feat (decoder): support streaming IO feat: support streaming IO May 12, 2022
@AsterDY AsterDY marked this pull request as ready for review May 12, 2022 03:50
@AsterDY AsterDY requested review from chenzhuoyu and liuq19 May 12, 2022 06:20
@AsterDY AsterDY marked this pull request as draft May 20, 2022 03:35
@AsterDY AsterDY marked this pull request as ready for review May 23, 2022 12:39
@AsterDY AsterDY merged commit f9d033d into main May 24, 2022
@AsterDY AsterDY deleted the feat/stream branch May 24, 2022 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants