Commit 482651b
authored
[chore] Fix benchmark (#14212)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
`b.Loop()` should not be used after it has returned false.
This changes the code to run offer a bunch of times and then consume a
bunch of times
I believe this is what is making codspeed fail.1 parent f09e5ef commit 482651b
File tree
1 file changed
+6
-5
lines changed- exporter/exporterhelper/internal/queue
1 file changed
+6
-5
lines changedLines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
806 | 806 | | |
807 | 807 | | |
808 | 808 | | |
809 | | - | |
810 | | - | |
811 | | - | |
812 | | - | |
813 | | - | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
814 | 815 | | |
815 | 816 | | |
816 | 817 | | |
| |||
0 commit comments