GOEXPERIMENT=jsonv2 performance penalty
Note: this is NOT a bug in OPA, but it may bite OPA users like me who enable GOEXPERIMENT=jsonv2 in Go 1.25.
I was surprised to see a roughly 20% performance penalty when enabling the Go 1.25 JSON v2 experiment with my OPA related code.
geomean 64.06m 77.79m +21.43%
I think it could be related to this issue: https://github.com/golang/go/issues/75026
For now I'm going to stick with github.com/go-json-experiment/json instead of moving to encoding/json/v2 in go 1.25.
Apologies for not having an OPA specific bench to share, but wanted to raise awareness.
Thanks for the heads up!
This issue has been automatically marked as inactive because it has not had any activity in the last 30 days. Although currently inactive, the issue could still be considered and actively worked on in the future. More details about the use-case this issue attempts to address, the value provided by completing it or possible solutions to resolve it would help to prioritize the issue.