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

perf: clean types and json performance #330

Merged
merged 6 commits into from
Sep 19, 2024
Merged

perf: clean types and json performance #330

merged 6 commits into from
Sep 19, 2024

Conversation

adrienaury
Copy link
Member

@adrienaury adrienaury commented Sep 18, 2024

Things to test

# keep best of 5 consecutive executions
go test -bench=BenchmarkPimoRunLarge -benchmem -run=^$ -benchtime=10s ./internal/app/pimo/.
Ordered Dict Library JSON Mashaling Library ns/op B/op allocs/op
current current 2481264 519016 1787
github.com/iancoleman/orderedmap encoding/json 2436197 538111 1788
github.com/iancoleman/orderedmap github.com/goccy/go-json 2448485 538139 1788
github.com/iancoleman/orderedmap github.com/bytedance/sonic TODO TODO TODO
github.com/iancoleman/orderedmap github.com/json-iterator/go TODO TODO TODO
github.com/wk8/go-ordered-map/v2 encoding/json TODO TODO TODO
github.com/wk8/go-ordered-map/v2 github.com/goccy/go-json 2767586 521107 2544
github.com/wk8/go-ordered-map/v2 github.com/bytedance/sonic TODO TODO TODO
github.com/wk8/go-ordered-map/v2 github.com/json-iterator/go TODO TODO TODO
github.com/7sDream/geko encoding/json TODO TODO TODO
github.com/7sDream/geko github.com/goccy/go-json TODO TODO TODO
github.com/7sDream/geko github.com/bytedance/sonic TODO TODO TODO
github.com/7sDream/geko github.com/json-iterator/go TODO TODO TODO

@adrienaury adrienaury merged commit 78f6c61 into main Sep 19, 2024
3 checks passed
@adrienaury adrienaury deleted the perf-clean-types branch September 19, 2024 11:18
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.

None yet

1 participant