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

json2: experiment with go-json-experiment #2021

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hdonnay
Copy link
Member

@hdonnay hdonnay commented Apr 5, 2024

No description provided.

@hdonnay hdonnay force-pushed the hack/json2 branch 2 times, most recently from 2d2a833 to a8a4a81 Compare April 10, 2024 15:01
@hdonnay
Copy link
Member Author

hdonnay commented Apr 10, 2024

Added a benchmark to the simple usage added in notifier/webhook, which seems promising:

goos: linux
goarch: amd64
pkg: github.com/quay/clair/v4/notifier/webhook
cpu: 11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz
BenchmarkEncodingJSON-16                  896776              1246 ns/op             657 B/op         11 allocs/op
BenchmarkCodecJSON-16                    1399909               850.9 ns/op           656 B/op         11 allocs/op
BenchmarkExperimentalJSON-16             2512387               470.7 ns/op            80 B/op          3 allocs/op
PASS
ok      github.com/quay/clair/v4/notifier/webhook       4.866s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant