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

Function stringsSlicesEqual

pkg/collector/distinct_value_collector_test.go:83–87  ·  view source on GitHub ↗
(t *testing.T, a, b []string)

Source from the content-addressed store, hash-verified

81}
82
83func stringsSlicesEqual(t *testing.T, a, b []string) {
84 sort.Strings(a)
85 sort.Strings(b)
86 require.Equal(t, a, b)
87}
88
89func BenchmarkDistinctValueCollect(b *testing.B) {
90 // simulate 100 ingesters, each returning 10_000 tag values

Calls 2

StringsMethod · 0.45
EqualMethod · 0.45

Tested by

no test coverage detected