Skip to content

Commit 53b5545

Browse files
authored
stream: writable state bitmap
PR-URL: #49899 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Raz Luvaton <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
1 parent 7b624c3 commit 53b5545

File tree

2 files changed

+192
-79
lines changed

2 files changed

+192
-79
lines changed

benchmark/streams/writable-manywrites.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const common = require('../common');
44
const Writable = require('stream').Writable;
55

66
const bench = common.createBenchmark(main, {
7-
n: [2e6],
7+
n: [1e5],
88
sync: ['yes', 'no'],
99
writev: ['yes', 'no'],
1010
callback: ['yes', 'no'],
@@ -13,7 +13,7 @@ const bench = common.createBenchmark(main, {
1313

1414
function main({ n, sync, writev, callback, len }) {
1515
const b = Buffer.allocUnsafe(len);
16-
const s = new Writable();
16+
const s = new Writable({ highWaterMark: 16 * 1024 });
1717
sync = sync === 'yes';
1818

1919
const writecb = (cb) => {

0 commit comments

Comments
 (0)