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

Improve telegraf json receiver performance #127

Merged
merged 3 commits into from
Dec 8, 2022

Conversation

msaf1980
Copy link
Collaborator

@msaf1980 msaf1980 commented Dec 8, 2022

go test -benchmem -run=^$ -bench ^BenchmarkTelegrafHttpJson5 github.com/lomik/carbon-clickhouse/receiver

$ benchcmp json1.txt json2.txt 
benchmark                        old ns/op     new ns/op     delta
BenchmarkTelegrafHttpJson5-6     28932         13065         -54.84%

benchmark                        old allocs     new allocs     delta
BenchmarkTelegrafHttpJson5-6     157            140            -10.83%

benchmark                        old bytes     new bytes     delta
BenchmarkTelegrafHttpJson5-6     9592          10692         +11.47%
```

@msaf1980 msaf1980 merged commit cb484fd into go-graphite:master Dec 8, 2022
@msaf1980 msaf1980 changed the title Receiver json perf Improve telegraf json receiver performance Dec 8, 2022
@msaf1980 msaf1980 deleted the receiver_json_perf branch April 25, 2024 09:55
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.

1 participant