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

feat: add APMBatch protobuf message #248

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

feat: add APMBatch protobuf message

1952f08
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

feat: add APMBatch protobuf message #248

feat: add APMBatch protobuf message
1952f08
Select commit
Loading
Failed to load commit list.
GitHub Actions / benchdiff-result succeeded Mar 28, 2024 in 0s

Benchdiff Results

Benchmark Command: go test ./... -run ^ -bench . -count 5 -benchtime 100ms -cpu 1,2 -benchmem

HEAD sha: 1952f08

Base sha: 5c199ba

Degraded: false

Details

pkg: github.com/elastic/apm-data/codec
goos: linux
goarch: amd64

name old time/op (ns/op) ± new time/op (ns/op) ± delta ±
Encode/format=json 48667.8 46% 26552.8 1% ~ (p=0.056 n=5+5)
Encode/format=json-2 13893.4 4% 14206.8 1% ~ (p=0.095 n=5+5)
Encode/format=vtproto 6261.25 0% 6530 4% +4.29% (p=0.016 n=4+5)
Encode/format=vtproto-2 4069 49% 3506.6 1% ~ (p=0.841 n=5+5)
Decode/format=vtproto 21233.6 1% 21268.8 0% ~ (p=0.690 n=5+5)
Decode/format=vtproto-2 13263.4 9% 14761.2 36% ~ (p=0.310 n=5+5)
Decode/format=json 127921 1% 132841 2% +3.85% (p=0.008 n=5+5)
Decode/format=json-2 62900 4% 65829.2 5% ~ (p=0.056 n=5+5)
name old bytes/op (bytes/op) ± new bytes/op (bytes/op) ± delta ±
Encode/format=json 6564 0% 6564 0% ~ (all equal)
Encode/format=json-2 6564 0% 6564 0% ~ (all equal)
Encode/format=vtproto 2775 0% 2775 0% ~ (all equal)
Encode/format=vtproto-2 2775 0% 2775 0% ~ (all equal)
name old alloc/op (B/op) ± new alloc/op (B/op) ± delta ±
Encode/format=json 7752 0% 7752 0% ~ (all equal)
Encode/format=json-2 7753 0% 7753 0% ~ (all equal)
Encode/format=vtproto 3200 0% 3200 0% ~ (all equal)
Encode/format=vtproto-2 3200 0% 3200 0% ~ (all equal)
Decode/format=vtproto 12977 0% 12976 0% -0.01% (p=0.029 n=4+4)
Decode/format=vtproto-2 13014 0% 13013.2 0% ~ (p=0.206 n=4+5)
Decode/format=json 14504 0% 14504 0% ~ (all equal)
Decode/format=json-2 14504 0% 14504 0% ~ (all equal)
name old allocs/op (allocs/op) ± new allocs/op (allocs/op) ± delta ±
Encode/format=json 30 0% 30 0% ~ (all equal)
Encode/format=json-2 30 0% 30 0% ~ (all equal)
Encode/format=vtproto 5 0% 5 0% ~ (all equal)
Encode/format=vtproto-2 5 0% 5 0% ~ (all equal)
Decode/format=vtproto 348 0% 348 0% ~ (all equal)
Decode/format=vtproto-2 348 0% 348 0% ~ (all equal)
Decode/format=json 397 0% 397 0% ~ (all equal)
Decode/format=json-2 397 0% 397 0% ~ (all equal)

pkg: github.com/elastic/apm-data/input/elasticapm/internal/decoder
goos: linux
goarch: amd64

name old time/op (ns/op) ± new time/op (ns/op) ± delta ±
NDStreamDecoder 278.52 3% 287.32 5% ~ (p=0.151 n=5+5)
NDStreamDecoder-2 157.88 2% 162.42 7% ~ (p=0.690 n=5+5)
name old alloc/op (B/op) ± new alloc/op (B/op) ± delta ±
NDStreamDecoder 72 0% 72 0% ~ (all equal)
NDStreamDecoder-2 72 0% 72 0% ~ (all equal)
name old allocs/op (allocs/op) ± new allocs/op (allocs/op) ± delta ±
NDStreamDecoder 4 0% 4 0% ~ (all equal)
NDStreamDecoder-2 4 0% 4 0% ~ (all equal)

pkg: github.com/elastic/apm-data/model/modeljson
goos: linux
goarch: amd64

name old time/op (ns/op) ± new time/op (ns/op) ± delta ±
APMEventToJSON/to-json 13744.4 5% 13923.2 4% ~ (p=0.548 n=5+5)
APMEventToJSON/to-json-2 12462.8 2% 12398.2 1% ~ (p=0.421 n=5+5)
name old alloc/op (B/op) ± new alloc/op (B/op) ± delta ±
APMEventToJSON/to-json 2472 0% 2472 0% ~ (all equal)
APMEventToJSON/to-json-2 2472 0% 2472 0% ~ (all equal)
name old allocs/op (allocs/op) ± new allocs/op (allocs/op) ± delta ±
APMEventToJSON/to-json 37 0% 37 0% ~ (all equal)
APMEventToJSON/to-json-2 37 0% 37 0% ~ (all equal)