(b *testing.B)
| 23 | ) |
| 24 | |
| 25 | func 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 | |
| 37 | func benchmarkCompactor(b *testing.B, traceCount, batchCount, spanCount int) { |
| 38 | rawR, rawW, _, err := local.New(&local.Config{ |
nothing calls this directly
no test coverage detected