MCPcopy
hub / github.com/grafana/tempo / benchmarkDeduper

Function benchmarkDeduper

modules/frontend/combiner/trace_by_id_deduper_test.go:214–222  ·  view source on GitHub ↗
(b *testing.B, traceSpanCount int)

Source from the content-addressed store, hash-verified

212}
213
214func benchmarkDeduper(b *testing.B, traceSpanCount int) {
215 trace := test.MakeTraceWithSpanCount(1, traceSpanCount, []byte{0x00})
216 s := newDeduper()
217
218 b.ResetTimer()
219 for i := 0; i < b.N; i++ {
220 _ = s.dedupe(trace)
221 }
222}

Callers 4

BenchmarkDeduper100Function · 0.85
BenchmarkDeduper1000Function · 0.85
BenchmarkDeduper10000Function · 0.85
BenchmarkDeduper100000Function · 0.85

Calls 3

MakeTraceWithSpanCountFunction · 0.92
newDeduperFunction · 0.85
dedupeMethod · 0.80

Tested by

no test coverage detected