MCPcopy Create free account
hub / github.com/devfeel/dotweb / Benchmark_AddErrorCount_Parallel

Function Benchmark_AddErrorCount_Parallel

core/state_test.go:92–99  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

90}
91
92func Benchmark_AddErrorCount_Parallel(b *testing.B) {
93 b.RunParallel(func(pb *testing.PB) {
94 var num uint64 = 1
95 for pb.Next() {
96 GlobalState.AddErrorCount("test", errors.New("test error"), num)
97 }
98 })
99}
100
101func Benchmark_AddRequestCount_1(b *testing.B) {
102 var num uint64 = 1

Callers

nothing calls this directly

Calls 2

AddErrorCountMethod · 0.80
NextMethod · 0.65

Tested by

no test coverage detected