feat: upgrade to Go 1.26 with GOEXPERIMENT=jsonv2#29
Open
Savid wants to merge 2 commits into
Open
Conversation
Bump Go from 1.25.1 to 1.26 and enable GOEXPERIMENT=jsonv2 across all build surfaces (Makefile, Dockerfile, goreleaser, CI) to leverage the jsonv2 encoding/json internals for faster marshal/unmarshal and reduced GC overhead via Green Tea GC. Add JSON benchmarks targeting the hot-path logging operations to measure the impact on unmarshal, marshal indent, beautifyJSON, and the full request/response logging flow. Benchmark results (Go 1.25.1 vs Go 1.26 GOEXPERIMENT=jsonv2): JSONUnmarshal: ~4.0x faster across all sizes (283 -> 536 MB/s at 1KB, 421 -> 1679 MB/s at 5MB) JSONMarshalIndent: ~3.2-3.5x faster, 35-45% less memory allocated JSONLoggingFlow: ~3.1-3.7x faster end-to-end on the hot-path logging goroutines
96bff1a to
f203177
Compare
Signed-off-by: Barnabas Busa <busa.barnabas@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bump Go from 1.25.1 to 1.26 and enable GOEXPERIMENT=jsonv2 across all build surfaces (Makefile, Dockerfile, goreleaser, CI) to leverage the jsonv2 encoding/json internals for faster marshal/unmarshal and reduced GC overhead via Green Tea GC.
Add JSON benchmarks targeting the hot-path logging operations to measure the impact on unmarshal, marshal indent, beautifyJSON, and the full request/response logging flow.
Benchmark results (Go 1.25.1 vs Go 1.26 GOEXPERIMENT=jsonv2):
JSONUnmarshal: ~4.0x faster across all sizes (283 -> 536 MB/s at 1KB, 421 -> 1679 MB/s at 5MB)
JSONMarshalIndent: ~3.2-3.5x faster, 35-45% less memory allocated
JSONLoggingFlow: ~3.1-3.7x faster end-to-end on the hot-path logging goroutines