MCPcopy Create free account
hub / github.com/cortexproject/cortex / BenchmarkSeriesMap

Function BenchmarkSeriesMap

pkg/ingester/client/compat_test.go:79–81  ·  view source on GitHub ↗

The main usecase for `LabelsToKeyString` is to generate hashKeys for maps. We are benchmarking that here.

(b *testing.B)

Source from the content-addressed store, hash-verified

77// The main usecase for `LabelsToKeyString` is to generate hashKeys
78// for maps. We are benchmarking that here.
79func BenchmarkSeriesMap(b *testing.B) {
80 benchmarkSeriesMap(100000, b)
81}
82
83func benchmarkSeriesMap(numSeries int, b *testing.B) {
84 series := makeSeries(numSeries)

Callers

nothing calls this directly

Calls 1

benchmarkSeriesMapFunction · 0.85

Tested by

no test coverage detected