summaryrefslogtreecommitdiff
path: root/benchmark/net
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-10-23 08:23:02 +0200
committerMichaƫl Zasso <targos@protonmail.com>2018-10-28 15:15:15 +0100
commitf01518edfd83e2235d84485d87621e61f675b4a7 (patch)
tree20a562e8e3d86cce4787fef5847baaced6015a53 /benchmark/net
parent0a23538e49e27b95ee35b051b6507eca74e2bb20 (diff)
downloadandroid-node-v8-f01518edfd83e2235d84485d87621e61f675b4a7.tar.gz
android-node-v8-f01518edfd83e2235d84485d87621e61f675b4a7.tar.bz2
android-node-v8-f01518edfd83e2235d84485d87621e61f675b4a7.zip
src: improve StreamBase write throughput
Improve performance by transferring information about write status to JS through an `AliasedBuffer`, rather than object properties set from C++. PR-URL: https://github.com/nodejs/node/pull/23843 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Diffstat (limited to 'benchmark/net')
-rw-r--r--benchmark/net/net-c2s.js2
-rw-r--r--benchmark/net/net-pipe.js2
-rw-r--r--benchmark/net/net-s2c.js2
-rw-r--r--benchmark/net/net-wrap-js-stream-passthrough.js2
4 files changed, 4 insertions, 4 deletions
diff --git a/benchmark/net/net-c2s.js b/benchmark/net/net-c2s.js
index 4add79a166..dc2a5bc015 100644
--- a/benchmark/net/net-c2s.js
+++ b/benchmark/net/net-c2s.js
@@ -6,7 +6,7 @@ const net = require('net');
const PORT = common.PORT;
const bench = common.createBenchmark(main, {
- len: [102400, 1024 * 1024 * 16],
+ len: [64, 102400, 1024 * 1024 * 16],
type: ['utf', 'asc', 'buf'],
dur: [5],
});
diff --git a/benchmark/net/net-pipe.js b/benchmark/net/net-pipe.js
index 3dd3bb78cc..e0b2842fd1 100644
--- a/benchmark/net/net-pipe.js
+++ b/benchmark/net/net-pipe.js
@@ -6,7 +6,7 @@ const net = require('net');
const PORT = common.PORT;
const bench = common.createBenchmark(main, {
- len: [102400, 1024 * 1024 * 16],
+ len: [64, 102400, 1024 * 1024 * 16],
type: ['utf', 'asc', 'buf'],
dur: [5],
});
diff --git a/benchmark/net/net-s2c.js b/benchmark/net/net-s2c.js
index 2ddf8fd6c5..6ee5afa663 100644
--- a/benchmark/net/net-s2c.js
+++ b/benchmark/net/net-s2c.js
@@ -5,7 +5,7 @@ const common = require('../common.js');
const PORT = common.PORT;
const bench = common.createBenchmark(main, {
- len: [102400, 1024 * 1024 * 16],
+ len: [64, 102400, 1024 * 1024 * 16],
type: ['utf', 'asc', 'buf'],
dur: [5]
});
diff --git a/benchmark/net/net-wrap-js-stream-passthrough.js b/benchmark/net/net-wrap-js-stream-passthrough.js
index 05a66f4e7a..c4d11fa56c 100644
--- a/benchmark/net/net-wrap-js-stream-passthrough.js
+++ b/benchmark/net/net-wrap-js-stream-passthrough.js
@@ -5,7 +5,7 @@ const common = require('../common.js');
const { PassThrough } = require('stream');
const bench = common.createBenchmark(main, {
- len: [102400, 1024 * 1024 * 16],
+ len: [64, 102400, 1024 * 1024 * 16],
type: ['utf', 'asc', 'buf'],
dur: [5],
}, {