Skip to content

Drop invalid array elements in OTLP payload #122

Drop invalid array elements in OTLP payload

Drop invalid array elements in OTLP payload #122

GitHub Actions / benchdiff-result succeeded Aug 13, 2024 in 0s

Benchdiff Results

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

HEAD sha: 05b775c

Base sha: 81d7764

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 38377.8 48% 27154.2 12% ~ (p=0.151 n=5+5)
Encode/format=json-2 14226.4 2% 14505.8 9% ~ (p=0.690 n=5+5)
Encode/format=vtproto 4611.6 0% 4594.4 0% ~ (p=0.151 n=5+5)
Encode/format=vtproto-2 2559.5 0% 2566.8 1% ~ (p=0.587 n=4+5)
Decode/format=json 124622 2% 122787 3% ~ (p=0.095 n=5+5)
Decode/format=json-2 61410.2 1% 62776.2 5% +2.22% (p=0.032 n=5+5)
Decode/format=vtproto 19847 0% 20409.6 1% +2.83% (p=0.008 n=5+5)
Decode/format=vtproto-2 12455.4 9% 12437.8 5% ~ (p=0.690 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 3072 0% 3072 0% ~ (all equal)
Encode/format=vtproto-2 3072 0% 3072 0% ~ (all equal)
Decode/format=json 14520 0% 14520 0% ~ (all equal)
Decode/format=json-2 14520 0% 14520 0% ~ (all equal)
Decode/format=vtproto 12992 0% 12992 0% ~ (all equal)
Decode/format=vtproto-2 13029.6 0% 13028.4 0% ~ (p=0.905 n=5+5)
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 1 0% 1 0% ~ (all equal)
Encode/format=vtproto-2 1 0% 1 0% ~ (all equal)
Decode/format=json 397 0% 397 0% ~ (all equal)
Decode/format=json-2 397 0% 397 0% ~ (all equal)
Decode/format=vtproto 348 0% 348 0% ~ (all equal)
Decode/format=vtproto-2 348 0% 348 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 273.6 5% 276.14 6% ~ (p=0.230 n=5+5)
NDStreamDecoder-2 156.8 9% 155.92 4% ~ (p=1.000 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 14548.2 8% 15599.6 7% ~ (p=0.151 n=5+5)
APMEventToJSON/to-json-2 12679 1% 13675.2 2% +7.86% (p=0.008 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)