Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 53b5545

Browse filesBrowse files
authored
stream: writable state bitmap
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>
1 parent 7b624c3 commit 53b5545
Copy full SHA for 53b5545

File tree

Expand file treeCollapse file tree

2 files changed

+192
-79
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+192
-79
lines changed
Open diff view settings
Collapse file

‎benchmark/streams/writable-manywrites.js‎

Copy file name to clipboardExpand all lines: benchmark/streams/writable-manywrites.js
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.