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

Function BenchmarkExtendReuseSlice

tempodb/encoding/vparquet5/schema_test.go:946–956  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

944}
945
946func BenchmarkExtendReuseSlice(b *testing.B) {
947 sizes := []int{5, 20, 8, 50, 12, 100, 30, 200, 15, 80, 3, 150, 10, 40, 7, 300, 25, 60, 90, 10}
948 for i := 0; i < b.N; i++ {
949
950 var buf []Attribute
951 for _, sz := range sizes {
952 buf = extendReuseSlice(sz, buf)
953 }
954 _ = buf
955 }
956}
957
958var benchmarkTrace *Trace
959

Callers

nothing calls this directly

Calls 1

extendReuseSliceFunction · 0.70

Tested by

no test coverage detected