| 1 | package metricsscip-go gomod github.com/VictoriaMetrics/metrics . `github.com/VictoriaMetrics/metrics`/ |
| 2 | |
| 3 | import ( |
| 4 | "testingscip-go gomod github.com/golang/go/src go1.24.0 testing/" |
| 5 | ) |
| 6 | |
| 7 | func BenchmarkAddExtraLabelsscip-go gomod github.com/VictoriaMetrics/metrics . `github.com/VictoriaMetrics/metrics`/BenchmarkAddExtraLabels().(b *testingscip-go gomod github.com/golang/go/src go1.24.0 testing/.Bscip-go gomod github.com/golang/go/src go1.24.0 testing/B#) { |
| 8 | extraLabels := `foo="bar"` |
| 9 | src := []byte(`foo 1 |
| 10 | bar{baz="x"} 2 |
| 11 | `) |
| 12 | b.ReportAllocsscip-go gomod github.com/golang/go/src go1.24.0 testing/B#ReportAllocs().() |
| 13 | b.SetBytesscip-go gomod github.com/golang/go/src go1.24.0 testing/B#SetBytes().(1) |
| 14 | b.RunParallelscip-go gomod github.com/golang/go/src go1.24.0 testing/B#RunParallel().(func(pb *testingscip-go gomod github.com/golang/go/src go1.24.0 testing/.PBscip-go gomod github.com/golang/go/src go1.24.0 testing/PB#) { |
| 15 | var dst []byte |
| 16 | for pb.Nextscip-go gomod github.com/golang/go/src go1.24.0 testing/PB#Next().() { |
| 17 | dst = addExtraLabelsscip-go gomod github.com/VictoriaMetrics/metrics . `github.com/VictoriaMetrics/metrics`/addExtraLabels().(dst[:0], src, extraLabels) |
| 18 | } |
| 19 | }) |
| 20 | } |