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

Function Benchmark_AddCurrentRequestCount_1

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

Source from the content-addressed store, hash-verified

106}
107
108func Benchmark_AddCurrentRequestCount_1(b *testing.B) {
109 var num uint64 = 1
110 for i := 0; i < b.N; i++ {
111 GlobalState.AddCurrentRequest(num)
112 }
113}
114
115func Benchmark_AddRequestCount_Parallel(b *testing.B) {
116 b.RunParallel(func(pb *testing.PB) {

Callers

nothing calls this directly

Calls 1

AddCurrentRequestMethod · 0.80

Tested by

no test coverage detected