MCPcopy Index your code
hub / github.com/eapache/queue / BenchmarkQueueGet

Function BenchmarkQueueGet

queue_test.go:160–169  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

158}
159
160func BenchmarkQueueGet(b *testing.B) {
161 q := New()
162 for i := 0; i < b.N; i++ {
163 q.Add(i)
164 }
165 b.ResetTimer()
166 for i := 0; i < b.N; i++ {
167 q.Get(i)
168 }
169}
170
171func BenchmarkQueueTickTock(b *testing.B) {
172 q := New()

Callers

nothing calls this directly

Calls 3

NewFunction · 0.85
AddMethod · 0.80
GetMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…