summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorGus Caplan <me@gus.host>2018-07-07 23:32:23 -0500
committerGus Caplan <me@gus.host>2018-07-12 16:11:11 -0500
commit8cae9b2ff808198b4451d9de634320fa5750c4cd (patch)
tree40b8264e77fefec5a9dba3c0d646483b8260cf3a /benchmark
parent1849a2b2e98c093e27d781bd5040f76a22e8f977 (diff)
downloadandroid-node-v8-8cae9b2ff808198b4451d9de634320fa5750c4cd.tar.gz
android-node-v8-8cae9b2ff808198b4451d9de634320fa5750c4cd.tar.bz2
android-node-v8-8cae9b2ff808198b4451d9de634320fa5750c4cd.zip
tools: add no-duplicate-requires rule
PR-URL: https://github.com/nodejs/node/pull/21712 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me>
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/streams/creation.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/benchmark/streams/creation.js b/benchmark/streams/creation.js
index 67187f91bd..46a0a54790 100644
--- a/benchmark/streams/creation.js
+++ b/benchmark/streams/creation.js
@@ -1,9 +1,11 @@
'use strict';
const common = require('../common.js');
-const Duplex = require('stream').Duplex;
-const Readable = require('stream').Readable;
-const Transform = require('stream').Transform;
-const Writable = require('stream').Writable;
+const {
+ Duplex,
+ Readable,
+ Transform,
+ Writable,
+} = require('stream');
const bench = common.createBenchmark(main, {
n: [50e6],