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

Function BenchmarkCompaction

tempodb/compactor_test.go:889–895  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

887}
888
889func BenchmarkCompaction(b *testing.B) {
890 for _, enc := range encoding.AllEncodingsForWrites() {
891 b.Run(enc.Version(), func(b *testing.B) {
892 benchmarkCompaction(b, enc.Version())
893 })
894 }
895}
896
897func benchmarkCompaction(b *testing.B, targetBlockVersion string) {
898 tempDir := b.TempDir()

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected