MCPcopy
hub / github.com/lindb/lindb / Benchmark_Gauge

Function Benchmark_Gauge

internal/linmetric/gauge_vec_test.go:49–55  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

47}
48
49func Benchmark_Gauge(b *testing.B) {
50 for i := 0; i < b.N; i++ {
51 BrokerRegistry.NewScope("gauge_test", "1", "3", "2", "4").
52 NewGauge("gauge").
53 Incr()
54 }
55}

Callers

nothing calls this directly

Calls 3

NewScopeMethod · 0.80
NewGaugeMethod · 0.65
IncrMethod · 0.45

Tested by

no test coverage detected