Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
49
func
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
NewScope
Method · 0.80
NewGauge
Method · 0.65
Incr
Method · 0.45
Tested by
no test coverage detected