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

Function BenchmarkCompactor

tempodb/encoding/vparquet4/compactor_test.go:25–35  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

23)
24
25func BenchmarkCompactor(b *testing.B) {
26 b.Run("Small", func(b *testing.B) {
27 benchmarkCompactor(b, 10000, 10, 10) // 1M spans total, 100 spans per trace
28 })
29 b.Run("Medium", func(b *testing.B) {
30 benchmarkCompactor(b, 100, 100, 100) // 1M spans total, 10K spans per trace
31 })
32 b.Run("Large", func(b *testing.B) {
33 benchmarkCompactor(b, 10, 100, 1000) // 1M spans total, 100K spans per trace
34 })
35}
36
37func benchmarkCompactor(b *testing.B, traceCount, batchCount, spanCount int) {
38 rawR, rawW, _, err := local.New(&local.Config{

Callers

nothing calls this directly

Calls 2

benchmarkCompactorFunction · 0.70
RunMethod · 0.45

Tested by

no test coverage detected