mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-28 21:09:17 +02:00
4987a1dd4b
I was looking at the trace benchmarks, and noticed this one, which says it tests "span start", but ending the span is included within the data. So this change removes ending the span from the computation, and adds a new benchmark which only computes span end. benchstat for span start: ``` pkg: go.opentelemetry.io/otel/sdk/trace │ bench-main │ bench-branch │ │ sec/op │ sec/op vs base │ TraceStart-10 725.6n ± 3% 667.2n ± 2% -8.04% (p=0.000 n=10) │ bench-main │ bench-branch │ │ B/op │ B/op vs base │ TraceStart-10 704.0 ± 0% 704.0 ± 0% ~ (p=1.000 n=10) ¹ ¹ all samples are equal │ bench-main │ bench-branch │ │ allocs/op │ allocs/op vs base │ TraceStart-10 14.00 ± 0% 14.00 ± 0% ~ (p=1.000 n=10) ¹ ¹ all samples are equal ``` Benchmark for span end: ``` BenchmarkSpanEnd-10 16486819 147.7 ns/op 0 B/op 0 allocs/op ``` |
||
---|---|---|
.. | ||
tracetest | ||
batch_span_processor_test.go | ||
batch_span_processor.go | ||
benchmark_test.go | ||
doc.go | ||
event.go | ||
evictedqueue_test.go | ||
evictedqueue.go | ||
id_generator_test.go | ||
id_generator.go | ||
link.go | ||
provider_test.go | ||
provider.go | ||
README.md | ||
sampler_env.go | ||
sampling_test.go | ||
sampling.go | ||
simple_span_processor_test.go | ||
simple_span_processor.go | ||
snapshot.go | ||
span_exporter.go | ||
span_limits_test.go | ||
span_limits.go | ||
span_processor_annotator_example_test.go | ||
span_processor_filter_example_test.go | ||
span_processor_test.go | ||
span_processor.go | ||
span_test.go | ||
span.go | ||
trace_test.go | ||
tracer.go | ||
util_test.go | ||
version_test.go | ||
version.go |