Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoEdgeLab/EdgeNode
/ BenchmarkSumStat
Function
BenchmarkSumStat
internal/metrics/sum_test.go:12–20 ·
view source on GitHub ↗
(b *testing.B)
Source
from the content-addressed store, hash-verified
10
)
11
12
func
BenchmarkSumStat(b *testing.B) {
13
runtime.GOMAXPROCS(2)
14
15
b.RunParallel(
func
(pb *testing.PB) {
16
for
pb.Next() {
17
metrics.UniqueKey(1, []string{
"1.2.3.4"
}, timeutil.Format(
"Ymd"
), 1, 1)
18
}
19
})
20
}
Callers
nothing calls this directly
Calls
3
UniqueKey
Function · 0.92
Next
Method · 0.80
Format
Method · 0.65
Tested by
no test coverage detected