summaryrefslogtreecommitdiff
path: root/deps/node/benchmark/streams/readable-boundaryread.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/node/benchmark/streams/readable-boundaryread.js')
-rw-r--r--deps/node/benchmark/streams/readable-boundaryread.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/deps/node/benchmark/streams/readable-boundaryread.js b/deps/node/benchmark/streams/readable-boundaryread.js
deleted file mode 100644
index 835c7d18..00000000
--- a/deps/node/benchmark/streams/readable-boundaryread.js
+++ /dev/null
@@ -1,25 +0,0 @@
-'use strict';
-
-const common = require('../common');
-const Readable = require('stream').Readable;
-
-const bench = common.createBenchmark(main, {
- n: [200e1],
- type: ['string', 'buffer']
-});
-
-function main({ n, type }) {
- const s = new Readable();
- var data = 'a'.repeat(32);
- if (type === 'buffer')
- data = Buffer.from(data);
- s._read = function() {};
-
- bench.start();
- for (var k = 0; k < n; ++k) {
- for (var i = 0; i < 1e4; ++i)
- s.push(data);
- while (s.read(32));
- }
- bench.end(n);
-}