(b *testing.B)
| 330 | } |
| 331 | |
| 332 | func 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 | |
| 348 | type taskRequest struct { |
| 349 | } |
nothing calls this directly
no test coverage detected