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

Function BenchmarkCompleteBlock

tempodb/tempodb_test.go:711–717  ·  tempodb/tempodb_test.go::BenchmarkCompleteBlock
(b *testing.B)

Source from the content-addressed store, hash-verified

709}
710
711func BenchmarkCompleteBlock(b *testing.B) {
712 for _, enc := range encoding.AllEncodingsForWrites() {
713 b.Run(enc.Version(), func(b *testing.B) {
714 benchmarkCompleteBlock(b, enc)
715 })
716 }
717}
718
719func benchmarkCompleteBlock(b *testing.B, e encoding.VersionedEncoding) {
720 // Create a WAL block with traces

Callers

nothing calls this directly

Calls 4

AllEncodingsForWritesFunction · 0.92
benchmarkCompleteBlockFunction · 0.85
VersionMethod · 0.65
RunMethod · 0.45

Tested by

no test coverage detected