diff --git a/benchmark/webstreams/pipe-to.js b/benchmark/webstreams/pipe-to.js index 2b765bf2051569..a849cea0124749 100644 --- a/benchmark/webstreams/pipe-to.js +++ b/benchmark/webstreams/pipe-to.js @@ -18,7 +18,7 @@ async function main({ n, highWaterMarkR, highWaterMarkW }) { const rs = new ReadableStream({ highWaterMark: highWaterMarkR, pull: function(controller) { - if (i++ === n) { + if (i++ < n) { controller.enqueue(b); } else { controller.close();