opa icon indicating copy to clipboard operation
opa copied to clipboard

GOEXPERIMENT=jsonv2 performance penalty

Open robmyersrobmyers opened this issue 5 months ago • 2 comments

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.

robmyersrobmyers avatar Aug 15 '25 09:08 robmyersrobmyers

Thanks for the heads up!

anderseknert avatar Aug 15 '25 11:08 anderseknert

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.

stale[bot] avatar Sep 14 '25 19:09 stale[bot]