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

Function BenchmarkAggregate

pkg/traceql/ast_execute_test.go:2191–2202  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

2189}
2190
2191func BenchmarkAggregate(b *testing.B) {
2192 agg := newAggregate(aggregateAvg, NewStaticInt(3))
2193 ss := make([]*Spanset, 1)
2194 ss[0] = &Spanset{
2195 Spans: make([]Span, 1000),
2196 }
2197
2198 b.ResetTimer()
2199 for i := 0; i < b.N; i++ {
2200 _, _ = agg.evaluate(ss)
2201 }
2202}
2203
2204func TestNotParentWithEmptyLHS(t *testing.T) {
2205 // Build a single spanset with only RHS candidates matching name="list-articles"

Callers

nothing calls this directly

Calls 3

newAggregateFunction · 0.85
NewStaticIntFunction · 0.85
evaluateMethod · 0.65

Tested by

no test coverage detected