Package list golang-gopkg-eapache-queue.v1 / 11fd258
Add Peek() calls to the benchmark for more realism Evan Huus 7 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
104104 q.Add(nil)
105105 }
106106 for i := 0; i < b.N; i++ {
107 q.Peek()
107108 q.Remove()
108109 }
109110 }
123124 q := New()
124125 for i := 0; i < b.N; i++ {
125126 q.Add(nil)
127 q.Peek()
126128 q.Remove()
127129 }
128130 }