Skip to content

Remove incorrect or unnecessary fields from documents from otlp span event #818

Remove incorrect or unnecessary fields from documents from otlp span event

Remove incorrect or unnecessary fields from documents from otlp span event #818

GitHub Actions / benchdiff-result succeeded Oct 9, 2024 in 0s

Benchdiff Results

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

HEAD sha: b89285a

Base sha: 330078b

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 25796.8 0% 25842.2 2% ~ (p=0.730 n=4+5)
Encode/format=json-2 13652.6 5% 15771.2 16% ~ (p=0.310 n=5+5)
Encode/format=vtproto 4919.6 0% 4700 1% -4.46% (p=0.008 n=5+5)
Encode/format=vtproto-2 2647.5 5% 2638.8 9% ~ (p=0.556 n=4+5)
Decode/format=vtproto 20430.8 25% 18969 2% ~ (p=0.841 n=5+5)
Decode/format=vtproto-2 10657.8 2% 10933.6 4% ~ (p=0.222 n=5+5)
Decode/format=json 124710 2% 142843 16% +14.54% (p=0.008 n=5+5)
Decode/format=json-2 66196.8 5% 69042.2 7% ~ (p=0.151 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 7592 0% 7592 0% ~ (all equal)
Encode/format=json-2 7593 0% 7593 0% ~ (all equal)
Encode/format=vtproto 3072 0% 3072 0% ~ (all equal)
Encode/format=vtproto-2 3072 0% 3072 0% ~ (all equal)
Decode/format=vtproto 12952 0% 12952 0% ~ (all equal)
Decode/format=vtproto-2 12952 0% 12952 0% ~ (all equal)
Decode/format=json 14282.2 0% 14283.2 0% ~ (p=0.437 n=5+5)
Decode/format=json-2 14282 0% 14281.8 0% ~ (p=1.000 n=4+5)
name old allocs/op (allocs/op) ± new allocs/op (allocs/op) ± delta ±
Encode/format=json 26 0% 26 0% ~ (all equal)
Encode/format=json-2 26 0% 26 0% ~ (all equal)
Encode/format=vtproto 1 0% 1 0% ~ (all equal)
Encode/format=vtproto-2 1 0% 1 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 379 0% 379 0% ~ (all equal)
Decode/format=json-2 379 0% 379 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 277.54 2% 281.06 3% ~ (p=0.151 n=5+5)
NDStreamDecoder-2 148.3 7% 150.7 5% ~ (p=0.548 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 16609.8 2% 15854 8% -4.55% (p=0.016 n=5+5)
APMEventToJSON/to-json-2 13519.2 1% 12999.8 1% -3.84% (p=0.008 n=5+5)
name old alloc/op (B/op) ± new alloc/op (B/op) ± delta ±
APMEventToJSON/to-json 2616 0% 2616 0% ~ (all equal)
APMEventToJSON/to-json-2 2616 0% 2616 0% ~ (all equal)
name old allocs/op (allocs/op) ± new allocs/op (allocs/op) ± delta ±
APMEventToJSON/to-json 38 0% 38 0% ~ (all equal)
APMEventToJSON/to-json-2 38 0% 38 0% ~ (all equal)