| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 57d2e48 commit 1abff07
18 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,7 @@ const net = require('net'); | |||
| 6 | 6 | const PORT = common.PORT; | |
| 7 | 7 | ||
| 8 | 8 | const bench = common.createBenchmark(main, { | |
| 9 | - len: [64, 102400, 1024 * 1024 * 16], | ||
| 9 | + len: [64, 102400, 1024 * 64 * 16], | ||
| 10 | 10 | type: ['utf', 'asc', 'buf'], | |
| 11 | 11 | dur: [5], | |
| 12 | 12 | }, { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,7 @@ const net = require('net'); | |||
| 6 | 6 | const PORT = common.PORT; | |
| 7 | 7 | ||
| 8 | 8 | const bench = common.createBenchmark(main, { | |
| 9 | - len: [2, 64, 102400, 1024 * 1024 * 16], | ||
| 9 | + len: [2, 64, 102400, 1024 * 64 * 16], | ||
| 10 | 10 | type: ['utf', 'asc', 'buf'], | |
| 11 | 11 | dur: [5], | |
| 12 | 12 | }, { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,7 +5,7 @@ const common = require('../common.js'); | |||
| 5 | 5 | const PORT = common.PORT; | |
| 6 | 6 | ||
| 7 | 7 | const bench = common.createBenchmark(main, { | |
| 8 | - sendchunklen: [256, 32 * 1024, 128 * 1024, 16 * 1024 * 1024], | ||
| 8 | + sendchunklen: [256, 32 * 1024, 128 * 1024, 16 * 64 * 1024], | ||
| 9 | 9 | type: ['utf', 'asc', 'buf'], | |
| 10 | 10 | recvbuflen: [0, 64 * 1024, 1024 * 1024], | |
| 11 | 11 | recvbufgenfn: ['true', 'false'], | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,7 +5,7 @@ const common = require('../common.js'); | |||
| 5 | 5 | const { PassThrough } = require('stream'); | |
| 6 | 6 | ||
| 7 | 7 | const bench = common.createBenchmark(main, { | |
| 8 | - len: [64, 102400, 1024 * 1024 * 16], | ||
| 8 | + len: [64, 102400, 1024 * 64 * 16], | ||
| 9 | 9 | type: ['utf', 'asc', 'buf'], | |
| 10 | 10 | dur: [5], | |
| 11 | 11 | }, { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,7 @@ const util = require('util'); | |||
| 9 | 9 | // run the function with those settings. | |
| 10 | 10 | // if not, then queue up a bunch of child processes. | |
| 11 | 11 | const bench = common.createBenchmark(main, { | |
| 12 | - len: [102400, 1024 * 1024 * 16], | ||
| 12 | + len: [102400, 1024 * 64 * 16], | ||
| 13 | 13 | type: ['utf', 'asc', 'buf'], | |
| 14 | 14 | dur: [5], | |
| 15 | 15 | }, { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,7 @@ const util = require('util'); | |||
| 9 | 9 | // run the function with those settings. | |
| 10 | 10 | // if not, then queue up a bunch of child processes. | |
| 11 | 11 | const bench = common.createBenchmark(main, { | |
| 12 | - len: [102400, 1024 * 1024 * 16], | ||
| 12 | + len: [102400, 1024 * 64 * 16], | ||
| 13 | 13 | type: ['utf', 'asc', 'buf'], | |
| 14 | 14 | dur: [5], | |
| 15 | 15 | }, { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,7 @@ const util = require('util'); | |||
| 9 | 9 | // run the function with those settings. | |
| 10 | 10 | // If not, then queue up a bunch of child processes. | |
| 11 | 11 | const bench = common.createBenchmark(main, { | |
| 12 | - len: [102400, 1024 * 1024 * 16], | ||
| 12 | + len: [102400, 1024 * 64 * 16], | ||
| 13 | 13 | type: ['utf', 'asc', 'buf'], | |
| 14 | 14 | dur: [5], | |
| 15 | 15 | }, { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3479,6 +3479,9 @@ method. | |||
| 3479 | 3479 | ||
| 3480 | 3480 | <!-- YAML | |
| 3481 | 3481 | changes: | |
| 3482 | + - version: REPLACEME | ||
| 3483 | + pr-url: https://github.com/nodejs/node/pull/52037 | ||
| 3484 | + description: bump default highWaterMark. | ||
| 3482 | 3485 | - version: v15.5.0 | |
| 3483 | 3486 | pr-url: https://github.com/nodejs/node/pull/36431 | |
| 3484 | 3487 | description: support passing in an AbortSignal. | |
@@ -3500,7 +3503,7 @@ changes: | |||
| 3500 | 3503 | * `options` {Object} | |
| 3501 | 3504 | * `highWaterMark` {number} Buffer level when | |
| 3502 | 3505 | [`stream.write()`][stream-write] starts returning `false`. **Default:** | |
| 3503 | - `16384` (16 KiB), or `16` for `objectMode` streams. | ||
| 3506 | + `65536` (64 KiB), or `16` for `objectMode` streams. | ||
| 3504 | 3507 | * `decodeStrings` {boolean} Whether to encode `string`s passed to | |
| 3505 | 3508 | [`stream.write()`][stream-write] to `Buffer`s (with the encoding | |
| 3506 | 3509 | specified in the [`stream.write()`][stream-write] call) before passing | |
@@ -3856,6 +3859,9 @@ constructor and implement the [`readable._read()`][] method. | |||
| 3856 | 3859 | ||
| 3857 | 3860 | <!-- YAML | |
| 3858 | 3861 | changes: | |
| 3862 | + - version: REPLACEME | ||
| 3863 | + pr-url: https://github.com/nodejs/node/pull/52037 | ||
| 3864 | + description: bump default highWaterMark. | ||
| 3859 | 3865 | - version: v15.5.0 | |
| 3860 | 3866 | pr-url: https://github.com/nodejs/node/pull/36431 | |
| 3861 | 3867 | description: support passing in an AbortSignal. | |
@@ -3873,7 +3879,7 @@ changes: | |||
| 3873 | 3879 | * `options` {Object} | |
| 3874 | 3880 | * `highWaterMark` {number} The maximum [number of bytes][hwm-gotcha] to store | |
| 3875 | 3881 | in the internal buffer before ceasing to read from the underlying resource. | |
| 3876 | - **Default:** `16384` (16 KiB), or `16` for `objectMode` streams. | ||
| 3882 | + **Default:** `65536` (64 KiB), or `16` for `objectMode` streams. | ||
| 3877 | 3883 | * `encoding` {string} If specified, then buffers will be decoded to | |
| 3878 | 3884 | strings using the specified encoding. **Default:** `null`. | |
| 3879 | 3885 | * `objectMode` {boolean} Whether this stream should behave | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,7 +8,8 @@ const { validateInteger } = require('internal/validators'); | |||
| 8 | 8 | ||
| 9 | 9 | const { ERR_INVALID_ARG_VALUE } = require('internal/errors').codes; | |
| 10 | 10 | ||
| 11 | - let defaultHighWaterMarkBytes = 16 * 1024; | ||
| 11 | + // TODO (fix): For some reason Windows CI fails with bigger hwm. | ||
| 12 | + let defaultHighWaterMarkBytes = process.platform === 'win32' ? 16 * 1024 : 64 * 1024; | ||
| 12 | 13 | let defaultHighWaterMarkObjectMode = 16; | |
| 13 | 14 | ||
| 14 | 15 | function highWaterMarkFrom(options, isDuplex, duplexKey) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,7 +34,7 @@ const server = http.createServer((req, res) => { | |||
| 34 | 34 | }, common.mustCall((res) => { | |
| 35 | 35 | res.resume(); | |
| 36 | 36 | ||
| 37 | - post.write(Buffer.alloc(16 * 1024).fill('X')); | ||
| 37 | + post.write(Buffer.alloc(64 * 1024).fill('X')); | ||
| 38 | 38 | onPause = () => { | |
| 39 | 39 | post.end('something'); | |
| 40 | 40 | }; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments