(b *testing.B)
| 63 | } |
| 64 | |
| 65 | func BenchmarkListQueue(b *testing.B) { |
| 66 | q := NewListQueue(100) |
| 67 | q.Run() |
| 68 | |
| 69 | b.ResetTimer() |
| 70 | b.RunParallel(func(pb *testing.PB) { |
| 71 | for pb.Next() { |
| 72 | job := NewJob("", func(v interface{}) { |
| 73 | _ = v |
| 74 | }) |
| 75 | q.Push(job) |
| 76 | } |
| 77 | }) |
| 78 | q.Terminate() |
| 79 | } |
nothing calls this directly
no test coverage detected