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

opt: support NoCopyRawMessage #708

Merged
merged 1 commit into from
Nov 12, 2024
Merged

opt: support NoCopyRawMessage #708

merged 1 commit into from
Nov 12, 2024

Conversation

liuq19
Copy link
Collaborator

@liuq19 liuq19 commented Nov 12, 2024

goos: linux
goarch: amd64
pkg: github.com/bytedance/sonic
cpu: Intel(R) Xeon(R) Platinum 8260 CPU @ 2.40GHz
BenchmarkDecoderRawMessage/StdRawMessage-8             75050         17134 ns/op     180.34 MB/s        7800 B/op         47 allocs/op
BenchmarkDecoderRawMessage/NocopyRawMessage-8          86970         12628 ns/op     244.69 MB/s        4987 B/op         26 allocs/op
BenchmarkDecoderRawMessage/NocopyRawMessageWithoutValidation-8            119670          9084 ns/op     340.18 MB/s        4893 B/op         26 allocs/op
PASS

@liuq19 liuq19 merged commit 4a3e8af into main Nov 12, 2024
34 of 49 checks passed
@liuq19 liuq19 deleted the opt/nocopy branch November 12, 2024 11:02
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