MCPcopy 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
12func 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

UniqueKeyFunction · 0.92
NextMethod · 0.80
FormatMethod · 0.65

Tested by

no test coverage detected