MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / BenchmarkKVTask_Add

Function BenchmarkKVTask_Add

internal/metrics/task_kv_test.go:332–346  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

330}
331
332func BenchmarkKVTask_Add(b *testing.B) {
333 runtime.GOMAXPROCS(1)
334
335 testingTaskInitOnce.Do(func() {
336 initTestingTask()
337 })
338
339 b.ResetTimer()
340
341 b.RunParallel(func(pb *testing.PB) {
342 for pb.Next() {
343 testingTask.Add(&taskRequest{})
344 }
345 })
346}
347
348type taskRequest struct {
349}

Callers

nothing calls this directly

Calls 4

initTestingTaskFunction · 0.85
DoMethod · 0.80
NextMethod · 0.80
AddMethod · 0.65

Tested by

no test coverage detected