Skip to content

Commit 9940243

Browse files
committed
stream: update stream/iter benchmarks
1 parent dd503d1 commit 9940243

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

benchmark/streams/iter-throughput-identity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function benchIterSync(chunk, datasize, n, totalOps) {
126126
}
127127
}
128128
// Drain to no-op sink, matching other benchmarks
129-
pipeToSync(source(), { write() {} });
129+
pipeToSync(source(), { writeSync() {} });
130130
}
131131
bench.end(totalOps);
132132
}

benchmark/streams/iter-throughput-pipeto.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function benchIterSync(chunk, datasize, n, totalOps) {
114114
yield [size === chunk.length ? chunk : chunk.subarray(0, size)];
115115
}
116116
}
117-
const writer = { write() {} };
117+
const writer = { writeSync() {} };
118118
pipeToSync(source(), writer);
119119
}
120120
bench.end(totalOps);

benchmark/streams/iter-throughput-transform.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function benchIterSync(chunk, datasize, n, totalOps) {
142142
yield [size === chunk.length ? chunk : chunk.subarray(0, size)];
143143
}
144144
}
145-
pipeToSync(source(), upper, { write() {} });
145+
pipeToSync(source(), upper, { writeSync() {} });
146146
}
147147
bench.end(totalOps);
148148
}

0 commit comments

Comments
 (0)