-
-
Save egonelbre/bffa9e02282f6623fc1b331a9515feee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for n := 0; n < b.N; n++ { | |
q := queueimpl7.New() | |
for k := 0; k < 1000; k++ { | |
for i := 0; i < test.count; i++ { | |
q.Push(i) | |
if test.remove && i > 0 && i%3 == 0 { | |
tmp, tmp2 = q.Pop() | |
} | |
} | |
var ok bool = true | |
for ok { | |
tmp, ok = q.Pop() | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for n := 0; n < b.N; n++ { | |
q := queueimpl7.New() | |
for i := 0; i < 5411; i++ { | |
q.Push(i) | |
} | |
for k := 0; k < 1000; k+++ | |
for i := 0; i < test.count; i++ { | |
q.Push(i) | |
} | |
for i := 0; i < test.count; i++ { | |
q.Pop(i) | |
} | |
} | |
var ok bool = true | |
for ok { | |
tmp, ok = q.Pop() | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for n := 0; n < b.N; n++ { | |
q := queueimpl7.New() | |
for i := 0; i < 5411; i++ { | |
q.Push(i) | |
} | |
for i := 0; i < test.count; i++ { | |
q.Push(i) | |
_, _ = q.Pop() | |
} | |
var ok bool = true | |
for ok { | |
tmp, ok = q.Pop() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment