Skip to content

Commit

Permalink
stream: writable state bitmap
Browse files Browse the repository at this point in the history
PR-URL: #49899
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Raz Luvaton <rluvaton@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
  • Loading branch information
ronag authored and targos committed Nov 11, 2023
1 parent ad17126 commit 35ec931
Show file tree
Hide file tree
Showing 2 changed files with 192 additions and 79 deletions.
4 changes: 2 additions & 2 deletions benchmark/streams/writable-manywrites.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const common = require('../common');
const Writable = require('stream').Writable;

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

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

const writecb = (cb) => {
Expand Down
Loading

0 comments on commit 35ec931

Please sign in to comment.