From 7760d40c04e96909cea74a09e243a34eac3eb13b Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Fri, 3 Feb 2023 11:43:15 +0100 Subject: [PATCH] benchmark: add trailing commas in `benchmark/net` PR-URL: https://github.com/nodejs/node/pull/46439 Reviewed-By: Moshe Atlow Reviewed-By: James M Snell --- benchmark/.eslintrc.yaml | 1 - benchmark/net/net-c2s.js | 2 +- benchmark/net/net-pipe.js | 2 +- benchmark/net/net-s2c.js | 8 ++++---- benchmark/net/net-wrap-js-stream-passthrough.js | 2 +- benchmark/net/tcp-raw-c2s.js | 6 +++--- benchmark/net/tcp-raw-pipe.js | 6 +++--- benchmark/net/tcp-raw-s2c.js | 6 +++--- 8 files changed, 16 insertions(+), 17 deletions(-) diff --git a/benchmark/.eslintrc.yaml b/benchmark/.eslintrc.yaml index b6c0105f49f823..8daf5ae9a6e7a8 100644 --- a/benchmark/.eslintrc.yaml +++ b/benchmark/.eslintrc.yaml @@ -16,7 +16,6 @@ overrides: - http2/*.js - misc/*.js - module/*.js - - net/*.js - path/*.js - process/*.js - url/*.js diff --git a/benchmark/net/net-c2s.js b/benchmark/net/net-c2s.js index 424c8f6dd072b3..fdb0bb4968c025 100644 --- a/benchmark/net/net-c2s.js +++ b/benchmark/net/net-c2s.js @@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, { type: ['utf', 'asc', 'buf'], dur: [5], }, { - test: { len: 1024 } + test: { len: 1024 }, }); let chunk; diff --git a/benchmark/net/net-pipe.js b/benchmark/net/net-pipe.js index 32e1085299a2ce..0b9107357cabb3 100644 --- a/benchmark/net/net-pipe.js +++ b/benchmark/net/net-pipe.js @@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, { type: ['utf', 'asc', 'buf'], dur: [5], }, { - test: { len: 1024 } + test: { len: 1024 }, }); let chunk; diff --git a/benchmark/net/net-s2c.js b/benchmark/net/net-s2c.js index 835cc67567bcf2..07c5a8806920b0 100644 --- a/benchmark/net/net-s2c.js +++ b/benchmark/net/net-s2c.js @@ -9,9 +9,9 @@ const bench = common.createBenchmark(main, { type: ['utf', 'asc', 'buf'], recvbuflen: [0, 64 * 1024, 1024 * 1024], recvbufgenfn: ['true', 'false'], - dur: [5] + dur: [5], }, { - test: { sendchunklen: 256 } + test: { sendchunklen: 256 }, }); let chunk; @@ -65,8 +65,8 @@ function main({ dur, sendchunklen, type, recvbuflen, recvbufgenfn }) { buffer, callback: function(nread, buf) { received += nread; - } - } + }, + }, }; } diff --git a/benchmark/net/net-wrap-js-stream-passthrough.js b/benchmark/net/net-wrap-js-stream-passthrough.js index 3824cfb9c0e03c..bae976ad40b0ba 100644 --- a/benchmark/net/net-wrap-js-stream-passthrough.js +++ b/benchmark/net/net-wrap-js-stream-passthrough.js @@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, { dur: [5], }, { test: { len: 64 }, - flags: ['--expose-internals'] + flags: ['--expose-internals'], }); let chunk; diff --git a/benchmark/net/tcp-raw-c2s.js b/benchmark/net/tcp-raw-c2s.js index 9547c01f38bc32..edfab797d09967 100644 --- a/benchmark/net/tcp-raw-c2s.js +++ b/benchmark/net/tcp-raw-c2s.js @@ -11,17 +11,17 @@ const util = require('util'); const bench = common.createBenchmark(main, { len: [102400, 1024 * 1024 * 16], type: ['utf', 'asc', 'buf'], - dur: [5] + dur: [5], }, { test: { len: 1024 }, - flags: [ '--expose-internals', '--no-warnings' ] + flags: [ '--expose-internals', '--no-warnings' ], }); function main({ dur, len, type }) { const { TCP, TCPConnectWrap, - constants: TCPConstants + constants: TCPConstants, } = common.binding('tcp_wrap'); const { WriteWrap } = common.binding('stream_wrap'); const PORT = common.PORT; diff --git a/benchmark/net/tcp-raw-pipe.js b/benchmark/net/tcp-raw-pipe.js index e422ff749fd545..15279b32784d8d 100644 --- a/benchmark/net/tcp-raw-pipe.js +++ b/benchmark/net/tcp-raw-pipe.js @@ -11,17 +11,17 @@ const util = require('util'); const bench = common.createBenchmark(main, { len: [102400, 1024 * 1024 * 16], type: ['utf', 'asc', 'buf'], - dur: [5] + dur: [5], }, { test: { len: 1024 }, - flags: [ '--expose-internals', '--no-warnings' ] + flags: [ '--expose-internals', '--no-warnings' ], }); function main({ dur, len, type }) { const { TCP, TCPConnectWrap, - constants: TCPConstants + constants: TCPConstants, } = common.binding('tcp_wrap'); const { WriteWrap } = common.binding('stream_wrap'); const PORT = common.PORT; diff --git a/benchmark/net/tcp-raw-s2c.js b/benchmark/net/tcp-raw-s2c.js index be7279ca0c315c..7818719b7285a8 100644 --- a/benchmark/net/tcp-raw-s2c.js +++ b/benchmark/net/tcp-raw-s2c.js @@ -11,17 +11,17 @@ const util = require('util'); const bench = common.createBenchmark(main, { len: [102400, 1024 * 1024 * 16], type: ['utf', 'asc', 'buf'], - dur: [5] + dur: [5], }, { test: { len: 1024 }, - flags: [ '--expose-internals', '--no-warnings' ] + flags: [ '--expose-internals', '--no-warnings' ], }); function main({ dur, len, type }) { const { TCP, TCPConnectWrap, - constants: TCPConstants + constants: TCPConstants, } = common.binding('tcp_wrap'); const { WriteWrap } = common.binding('stream_wrap'); const PORT = common.PORT;