From 32b45fea4be24001de56353442f5a0c4b100537f Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Wed, 25 Jan 2023 07:18:12 +0100 Subject: [PATCH] benchmark: add trailing commas --- benchmark/.eslintrc.yaml | 32 +++++++++++++++---- benchmark/_http-benchmarkers.js | 4 +-- benchmark/assert/deepequal-map.js | 4 +-- benchmark/blob/blob.js | 2 +- benchmark/blob/file.js | 2 +- .../child-process-exec-stdout.js | 2 +- .../child_process/child-process-read-ipc.js | 2 +- benchmark/child_process/child-process-read.js | 2 +- benchmark/child_process/spawn-echo.js | 2 +- benchmark/cluster/echo.js | 4 +-- benchmark/common.js | 6 ++-- benchmark/compare.js | 2 +- benchmark/dgram/array-vs-concat.js | 2 +- benchmark/dgram/multi-buffer.js | 2 +- benchmark/dgram/offset-length.js | 2 +- benchmark/dgram/single-buffer.js | 2 +- benchmark/diagnostics_channel/http.js | 12 +++---- benchmark/diagnostics_channel/publish.js | 2 +- benchmark/dns/lookup-promises.js | 2 +- benchmark/dns/lookup.js | 2 +- benchmark/domain/domain-fn-args.js | 2 +- benchmark/error/node-error.js | 4 +-- benchmark/es/defaultparams-bench.js | 2 +- benchmark/es/destructuring-bench.js | 2 +- benchmark/es/destructuring-object-bench.js | 2 +- benchmark/es/foreach-bench.js | 2 +- benchmark/es/map-bench.js | 4 +-- benchmark/es/restparams-bench.js | 2 +- benchmark/es/spread-assign.js | 2 +- benchmark/es/spread-bench.js | 2 +- benchmark/esm/cjs-parse.js | 2 +- benchmark/events/ee-listeners.js | 2 +- benchmark/events/ee-once.js | 2 +- benchmark/events/eventtarget.js | 2 +- benchmark/https/simple.js | 4 +-- benchmark/napi/function_call/index.js | 2 +- benchmark/os/cpus.js | 2 +- benchmark/os/loadavg.js | 2 +- benchmark/os/networkInterfaces.js | 2 +- benchmark/perf_hooks/resourcetiming.js | 4 +-- benchmark/policy/policy-startup.js | 8 ++--- .../querystring/querystring-stringify.js | 8 ++--- benchmark/readline/readline-iterable.js | 2 +- benchmark/run.js | 2 +- benchmark/streams/creation.js | 2 +- benchmark/streams/destroy.js | 2 +- benchmark/streams/pipe-object-mode.js | 2 +- benchmark/streams/pipe.js | 2 +- benchmark/streams/readable-async-iterator.js | 2 +- benchmark/streams/readable-bigread.js | 2 +- benchmark/streams/readable-bigunevenread.js | 2 +- benchmark/streams/readable-boundaryread.js | 2 +- benchmark/streams/readable-readall.js | 2 +- benchmark/streams/readable-unevenread.js | 2 +- benchmark/streams/writable-manywrites.js | 2 +- .../string_decoder/string-decoder-create.js | 2 +- benchmark/string_decoder/string-decoder.js | 2 +- benchmark/timers/immediate.js | 2 +- .../timers/set-immediate-breadth-args.js | 2 +- benchmark/timers/set-immediate-breadth.js | 2 +- benchmark/timers/set-immediate-depth-args.js | 2 +- benchmark/timers/timers-cancel-unpooled.js | 2 +- benchmark/timers/timers-insert-unpooled.js | 2 +- benchmark/tls/convertprotocols.js | 2 +- benchmark/tls/secure-pair.js | 4 +-- benchmark/tls/throughput-c2s.js | 2 +- benchmark/tls/throughput-s2c.js | 6 ++-- benchmark/tls/tls-connect.js | 4 +-- benchmark/v8/get-stats.js | 2 +- benchmark/v8/serialize.js | 2 +- benchmark/vm/create-context.js | 2 +- benchmark/vm/run-in-context.js | 2 +- benchmark/vm/run-in-this-context.js | 2 +- benchmark/webstreams/creation.js | 2 +- benchmark/webstreams/pipe-to.js | 2 +- .../webstreams/readable-async-iterator.js | 2 +- benchmark/worker/atomics-wait.js | 2 +- benchmark/worker/echo.js | 2 +- benchmark/worker/messageport.js | 2 +- benchmark/zlib/createInflate.js | 2 +- benchmark/zlib/creation.js | 2 +- benchmark/zlib/deflate.js | 2 +- benchmark/zlib/inflate.js | 2 +- benchmark/zlib/pipe.js | 6 ++-- 84 files changed, 134 insertions(+), 116 deletions(-) diff --git a/benchmark/.eslintrc.yaml b/benchmark/.eslintrc.yaml index 7802df7c2f97cb..f7325c20e7c870 100644 --- a/benchmark/.eslintrc.yaml +++ b/benchmark/.eslintrc.yaml @@ -5,11 +5,29 @@ env: es6: true rules: - comma-dangle: [error, { - arrays: always-multiline, - exports: always-multiline, - functions: only-multiline, - imports: always-multiline, - objects: only-multiline, - }] prefer-arrow-callback: error + +overrides: + - files: + - async_hooks/*.js + - buffers/*.js + - buffers-fill/*.js + - crypto/*.js + - fs/*.js + - http/*.js + - http2/*.js + - misc/*.js + - module/*.js + - net/*.js + - path/*.js + - process/*.js + - url/*.js + - util/*.js + rules: + comma-dangle: [error, { + arrays: always-multiline, + exports: always-multiline, + functions: only-multiline, + imports: always-multiline, + objects: only-multiline, + }] diff --git a/benchmark/_http-benchmarkers.js b/benchmark/_http-benchmarkers.js index e8c5ee7711ab33..3c8997e73a8d2d 100644 --- a/benchmark/_http-benchmarkers.js +++ b/benchmark/_http-benchmarkers.js @@ -106,7 +106,7 @@ class TestDoubleBenchmarker { const scheme = options.scheme || 'http'; const env = { test_url: `${scheme}://127.0.0.1:${options.port}${options.path}`, - ...process.env + ...process.env, }; const child = child_process.fork(this.executable, @@ -203,7 +203,7 @@ exports.run = function(options, callback) { connections: 100, duration: 5, benchmarker: exports.default_http_benchmarker, - ...options + ...options, }; if (!options.benchmarker) { callback(new Error('Could not locate required http benchmarker. See ' + diff --git a/benchmark/assert/deepequal-map.js b/benchmark/assert/deepequal-map.js index 77408e3d103475..0b08c82c499a57 100644 --- a/benchmark/assert/deepequal-map.js +++ b/benchmark/assert/deepequal-map.js @@ -46,7 +46,7 @@ function main({ n, len, method, strict }) { } case 'deepEqual_mixed': { const values = array.map( - (_, i) => [i % 2 ? [`str_${i}`, 1] : `str_${i}`, 123] + (_, i) => [i % 2 ? [`str_${i}`, 1] : `str_${i}`, 123], ); benchmark(strict ? deepStrictEqual : deepEqual, n, values); break; @@ -67,7 +67,7 @@ function main({ n, len, method, strict }) { } case 'notDeepEqual_mixed': { const values = array.map( - (_, i) => [i % 2 ? [`str_${i}`, 1] : `str_${i}`, 123] + (_, i) => [i % 2 ? [`str_${i}`, 1] : `str_${i}`, 123], ); const values2 = values.slice(0); values2[0] = ['w00t', 123]; diff --git a/benchmark/blob/blob.js b/benchmark/blob/blob.js index e63a18c84830ce..7e5ea5d7cc2fae 100644 --- a/benchmark/blob/blob.js +++ b/benchmark/blob/blob.js @@ -5,7 +5,7 @@ const { Blob } = require('buffer'); const bench = common.createBenchmark(main, { bytes: [128, 1024, 1024 ** 2], n: [1e6], - operation: ['text', 'arrayBuffer'] + operation: ['text', 'arrayBuffer'], }); async function run(n, bytes, operation) { diff --git a/benchmark/blob/file.js b/benchmark/blob/file.js index 42f866b1ad8ce8..001de1be1157f9 100644 --- a/benchmark/blob/file.js +++ b/benchmark/blob/file.js @@ -5,7 +5,7 @@ const { File } = require('buffer'); const bench = common.createBenchmark(main, { bytes: [128, 1024, 1024 ** 2], n: [1e6], - operation: ['text', 'arrayBuffer'] + operation: ['text', 'arrayBuffer'], }); const options = { diff --git a/benchmark/child_process/child-process-exec-stdout.js b/benchmark/child_process/child-process-exec-stdout.js index f750e2cf3e68f2..f68cd6962c7a5e 100644 --- a/benchmark/child_process/child-process-exec-stdout.js +++ b/benchmark/child_process/child-process-exec-stdout.js @@ -9,7 +9,7 @@ if (!isWindows) messagesLength.push(32768); const bench = common.createBenchmark(childProcessExecStdout, { len: messagesLength, - dur: [5] + dur: [5], }); function childProcessExecStdout({ dur, len }) { diff --git a/benchmark/child_process/child-process-read-ipc.js b/benchmark/child_process/child-process-read-ipc.js index 280505026cd02e..dd8332d9817be4 100644 --- a/benchmark/child_process/child-process-read-ipc.js +++ b/benchmark/child_process/child-process-read-ipc.js @@ -15,7 +15,7 @@ if (process.argv[2] === 'child') { 64, 256, 1024, 4096, 16384, 65536, 65536 << 4, 65536 << 6 - 1, ], - dur: [5] + dur: [5], }); const spawn = require('child_process').spawn; diff --git a/benchmark/child_process/child-process-read.js b/benchmark/child_process/child-process-read.js index 01e9846be22b56..0364009d5320ed 100644 --- a/benchmark/child_process/child-process-read.js +++ b/benchmark/child_process/child-process-read.js @@ -14,7 +14,7 @@ if (os.platform() !== 'win32') const bench = common.createBenchmark(main, { len: messagesLength, - dur: [5] + dur: [5], }); function main({ dur, len }) { diff --git a/benchmark/child_process/spawn-echo.js b/benchmark/child_process/spawn-echo.js index 8f5c80cd23ba18..9b5a32d01ca8b3 100644 --- a/benchmark/child_process/spawn-echo.js +++ b/benchmark/child_process/spawn-echo.js @@ -1,7 +1,7 @@ 'use strict'; const common = require('../common.js'); const bench = common.createBenchmark(main, { - n: [1000] + n: [1000], }); const spawn = require('child_process').spawn; diff --git a/benchmark/cluster/echo.js b/benchmark/cluster/echo.js index 9def87cf8b0e98..bedfa063257d63 100644 --- a/benchmark/cluster/echo.js +++ b/benchmark/cluster/echo.js @@ -8,7 +8,7 @@ if (cluster.isMaster) { payload: ['string', 'object'], sendsPerBroadcast: [1, 10], serialization: ['json', 'advanced'], - n: [1e5] + n: [1e5], }); function main({ @@ -16,7 +16,7 @@ if (cluster.isMaster) { workers, sendsPerBroadcast, payload, - serialization + serialization, }) { const expectedPerBroadcast = sendsPerBroadcast * workers; let readies = 0; diff --git a/benchmark/common.js b/benchmark/common.js index b385c8f5bd633e..71c11e21aea1e0 100644 --- a/benchmark/common.js +++ b/benchmark/common.js @@ -108,7 +108,7 @@ class Benchmark { cliOptions[key] = []; cliOptions[key].push( // Infer the type from the config object and parse accordingly - typeof configs[key][0] === 'number' ? +value : value + typeof configs[key][0] === 'number' ? +value : value, ); } else { extraOptions[key] = value; @@ -148,7 +148,7 @@ class Benchmark { const allowed = combinationFilter({ ...currConfig }); if (typeof allowed !== 'boolean') { throw new TypeError( - 'Combination filter must always return a boolean' + 'Combination filter must always return a boolean', ); } if (allowed) @@ -183,7 +183,7 @@ class Benchmark { } this.config.benchmarker = used_benchmarker; this.report(result, elapsed); - } + }, ); } diff --git a/benchmark/compare.js b/benchmark/compare.js index 169948e006d660..503901f607ef02 100644 --- a/benchmark/compare.js +++ b/benchmark/compare.js @@ -71,7 +71,7 @@ if (showProgress) { const job = queue[i]; const child = fork(path.resolve(__dirname, job.filename), cli.optional.set, { - execPath: cli.optional[job.binary] + execPath: cli.optional[job.binary], }); child.on('message', (data) => { diff --git a/benchmark/dgram/array-vs-concat.js b/benchmark/dgram/array-vs-concat.js index ae9a759a983c04..b5662acfc4033b 100644 --- a/benchmark/dgram/array-vs-concat.js +++ b/benchmark/dgram/array-vs-concat.js @@ -13,7 +13,7 @@ const bench = common.createBenchmark(main, { num: [100], chunks: [1, 2, 4, 8], type: ['concat', 'multi'], - dur: [5] + dur: [5], }); function main({ dur, len, num, type, chunks }) { diff --git a/benchmark/dgram/multi-buffer.js b/benchmark/dgram/multi-buffer.js index add77cd7845ce1..945d02c2d1c0e7 100644 --- a/benchmark/dgram/multi-buffer.js +++ b/benchmark/dgram/multi-buffer.js @@ -13,7 +13,7 @@ const bench = common.createBenchmark(main, { num: [100], chunks: [1, 2, 4, 8], type: ['send', 'recv'], - dur: [5] + dur: [5], }); function main({ dur, len, num, type, chunks }) { diff --git a/benchmark/dgram/offset-length.js b/benchmark/dgram/offset-length.js index eea0b75b773ca8..ac0fee731eab20 100644 --- a/benchmark/dgram/offset-length.js +++ b/benchmark/dgram/offset-length.js @@ -12,7 +12,7 @@ const bench = common.createBenchmark(main, { len: [1, 64, 256, 1024], num: [100], type: ['send', 'recv'], - dur: [5] + dur: [5], }); function main({ dur, len, num, type }) { diff --git a/benchmark/dgram/single-buffer.js b/benchmark/dgram/single-buffer.js index b02f785bb052f2..6a7fa3dde22942 100644 --- a/benchmark/dgram/single-buffer.js +++ b/benchmark/dgram/single-buffer.js @@ -12,7 +12,7 @@ const bench = common.createBenchmark(main, { len: [1, 64, 256, 1024], num: [100], type: ['send', 'recv'], - dur: [5] + dur: [5], }); function main({ dur, len, num, type }) { diff --git a/benchmark/diagnostics_channel/http.js b/benchmark/diagnostics_channel/http.js index 55fac8a706df15..caf37a05a45c3b 100644 --- a/benchmark/diagnostics_channel/http.js +++ b/benchmark/diagnostics_channel/http.js @@ -11,7 +11,7 @@ const bench = common.createBenchmark(main, { chunks: 4, connections: [50, 500], chunkedEnc: 1, - duration: 5 + duration: 5, }); function main({ apm, connections, duration, type, len, chunks, chunkedEnc }) { @@ -24,7 +24,7 @@ function main({ apm, connections, duration, type, len, chunks, chunkedEnc }) { bench.http({ path, connections, - duration + duration, }, () => { server.close(); if (done) done(); @@ -44,14 +44,14 @@ function patch() { if (name === 'request') { als.enterWith({ url: req.url, - start: process.hrtime.bigint() + start: process.hrtime.bigint(), }); res.on('finish', () => { times.push({ ...als.getStore(), statusCode: res.statusCode, - end: process.hrtime.bigint() + end: process.hrtime.bigint(), }); }); } @@ -74,7 +74,7 @@ function diagnostics_channel() { function onStart(req) { als.enterWith({ url: req.url, - start: process.hrtime.bigint() + start: process.hrtime.bigint(), }); } @@ -82,7 +82,7 @@ function diagnostics_channel() { times.push({ ...als.getStore(), statusCode: res.statusCode, - end: process.hrtime.bigint() + end: process.hrtime.bigint(), }); } diff --git a/benchmark/diagnostics_channel/publish.js b/benchmark/diagnostics_channel/publish.js index 31a770c8627919..3a30012ba692b8 100644 --- a/benchmark/diagnostics_channel/publish.js +++ b/benchmark/diagnostics_channel/publish.js @@ -16,7 +16,7 @@ function main({ n, subscribers }) { } const data = { - foo: 'bar' + foo: 'bar', }; bench.start(); diff --git a/benchmark/dns/lookup-promises.js b/benchmark/dns/lookup-promises.js index a74c856cd3461a..e67a5ab9a7ae7f 100644 --- a/benchmark/dns/lookup-promises.js +++ b/benchmark/dns/lookup-promises.js @@ -6,7 +6,7 @@ const { lookup } = require('dns').promises; const bench = common.createBenchmark(main, { name: ['127.0.0.1', '::1'], all: ['true', 'false'], - n: [5e6] + n: [5e6], }); function main({ name, n, all }) { diff --git a/benchmark/dns/lookup.js b/benchmark/dns/lookup.js index 691daa8a879e2b..c9d1c0f7c39aa2 100644 --- a/benchmark/dns/lookup.js +++ b/benchmark/dns/lookup.js @@ -6,7 +6,7 @@ const lookup = require('dns').lookup; const bench = common.createBenchmark(main, { name: ['127.0.0.1', '::1'], all: ['true', 'false'], - n: [5e6] + n: [5e6], }); function main({ name, n, all }) { diff --git a/benchmark/domain/domain-fn-args.js b/benchmark/domain/domain-fn-args.js index 18906a9ce64099..d55658ccdbaabd 100644 --- a/benchmark/domain/domain-fn-args.js +++ b/benchmark/domain/domain-fn-args.js @@ -4,7 +4,7 @@ const domain = require('domain'); const bench = common.createBenchmark(main, { args: [0, 1, 2, 3], - n: [10] + n: [10], }); const bdomain = domain.create(); diff --git a/benchmark/error/node-error.js b/benchmark/error/node-error.js index f672522b2d0a65..3a0aef91f04a06 100644 --- a/benchmark/error/node-error.js +++ b/benchmark/error/node-error.js @@ -5,14 +5,14 @@ const common = require('../common'); const bench = common.createBenchmark(main, { n: [1e7], }, { - flags: ['--expose-internals'] + flags: ['--expose-internals'], }); function main({ n }) { const { codes: { ERR_INVALID_STATE, - } + }, } = require('internal/errors'); bench.start(); for (let i = 0; i < n; ++i) diff --git a/benchmark/es/defaultparams-bench.js b/benchmark/es/defaultparams-bench.js index fde4cb11ad448a..4befe99177175b 100644 --- a/benchmark/es/defaultparams-bench.js +++ b/benchmark/es/defaultparams-bench.js @@ -5,7 +5,7 @@ const assert = require('assert'); const bench = common.createBenchmark(main, { method: ['withoutdefaults', 'withdefaults'], - n: [1e8] + n: [1e8], }); function oldStyleDefaults(x, y) { diff --git a/benchmark/es/destructuring-bench.js b/benchmark/es/destructuring-bench.js index d412b82757f083..10b61f44b3dcfa 100644 --- a/benchmark/es/destructuring-bench.js +++ b/benchmark/es/destructuring-bench.js @@ -5,7 +5,7 @@ const assert = require('assert'); const bench = common.createBenchmark(main, { method: ['swap', 'destructure'], - n: [1e8] + n: [1e8], }); function runSwapManual(n) { diff --git a/benchmark/es/destructuring-object-bench.js b/benchmark/es/destructuring-object-bench.js index 29c83bd188e89d..23cc8ace1109fc 100644 --- a/benchmark/es/destructuring-object-bench.js +++ b/benchmark/es/destructuring-object-bench.js @@ -4,7 +4,7 @@ const common = require('../common.js'); const bench = common.createBenchmark(main, { method: ['normal', 'destructureObject'], - n: [1e8] + n: [1e8], }); function runNormal(n) { diff --git a/benchmark/es/foreach-bench.js b/benchmark/es/foreach-bench.js index 86bd8dff4c0a2c..63280d1c9a9d00 100644 --- a/benchmark/es/foreach-bench.js +++ b/benchmark/es/foreach-bench.js @@ -5,7 +5,7 @@ const common = require('../common.js'); const bench = common.createBenchmark(main, { method: ['for', 'for-of', 'for-in', 'forEach'], count: [5, 10, 20, 100], - n: [5e6] + n: [5e6], }); function useFor(n, items, count) { diff --git a/benchmark/es/map-bench.js b/benchmark/es/map-bench.js index c81cf57e5da66c..3a41ebf8294ff5 100644 --- a/benchmark/es/map-bench.js +++ b/benchmark/es/map-bench.js @@ -8,7 +8,7 @@ const bench = common.createBenchmark(main, { 'object', 'nullProtoObject', 'nullProtoLiteralObject', 'storageObject', 'fakeMap', 'map', ], - n: [1e6] + n: [1e6], }); function runObject(n) { @@ -72,7 +72,7 @@ function fakeMap() { get(key) { return m[`$${key}`]; }, set(key, val) { m[`$${key}`] = val; }, get size() { return Object.keys(m).length; }, - has(key) { return Object.hasOwn(m, `$${key}`); } + has(key) { return Object.hasOwn(m, `$${key}`); }, }; } diff --git a/benchmark/es/restparams-bench.js b/benchmark/es/restparams-bench.js index 8129bc92533332..219bbdd725f4bb 100644 --- a/benchmark/es/restparams-bench.js +++ b/benchmark/es/restparams-bench.js @@ -5,7 +5,7 @@ const assert = require('assert'); const bench = common.createBenchmark(main, { method: ['copy', 'rest', 'arguments'], - n: [1e8] + n: [1e8], }); function copyArguments() { diff --git a/benchmark/es/spread-assign.js b/benchmark/es/spread-assign.js index c34bb93e762d12..f0dcd56bb606b1 100644 --- a/benchmark/es/spread-assign.js +++ b/benchmark/es/spread-assign.js @@ -6,7 +6,7 @@ const util = require('util'); const bench = common.createBenchmark(main, { method: ['spread', 'assign', '_extend'], count: [5, 10, 20], - n: [1e6] + n: [1e6], }); function main({ n, context, count, rest, method }) { diff --git a/benchmark/es/spread-bench.js b/benchmark/es/spread-bench.js index 284debdfa09ad8..c5191a7879a9e4 100644 --- a/benchmark/es/spread-bench.js +++ b/benchmark/es/spread-bench.js @@ -8,7 +8,7 @@ const bench = common.createBenchmark(main, { count: [5, 10, 20], context: ['context', 'null'], rest: [0, 1], - n: [5e6] + n: [5e6], }); function makeTest(count, rest) { diff --git a/benchmark/esm/cjs-parse.js b/benchmark/esm/cjs-parse.js index 325b362a057112..aae8109c2d4e54 100644 --- a/benchmark/esm/cjs-parse.js +++ b/benchmark/esm/cjs-parse.js @@ -9,7 +9,7 @@ const benchmarkDirectory = path.resolve(tmpdir.path, 'benchmark-esm-parse'); const bench = common.createBenchmark(main, { - n: [1e2] + n: [1e2], }); async function main({ n }) { diff --git a/benchmark/events/ee-listeners.js b/benchmark/events/ee-listeners.js index 9de8d04a175b4b..5d21322d09ec7b 100644 --- a/benchmark/events/ee-listeners.js +++ b/benchmark/events/ee-listeners.js @@ -5,7 +5,7 @@ const EventEmitter = require('events').EventEmitter; const bench = common.createBenchmark(main, { n: [5e6], listeners: [5, 50], - raw: ['true', 'false'] + raw: ['true', 'false'], }); function main({ n, listeners, raw }) { diff --git a/benchmark/events/ee-once.js b/benchmark/events/ee-once.js index bd0a39565332b2..a8767c8e54e2d5 100644 --- a/benchmark/events/ee-once.js +++ b/benchmark/events/ee-once.js @@ -4,7 +4,7 @@ const EventEmitter = require('events').EventEmitter; const bench = common.createBenchmark(main, { n: [2e7], - argc: [0, 1, 4, 5] + argc: [0, 1, 4, 5], }); function main({ n, argc }) { diff --git a/benchmark/events/eventtarget.js b/benchmark/events/eventtarget.js index d2c3ad034ff9b4..a834678d2c0fd4 100644 --- a/benchmark/events/eventtarget.js +++ b/benchmark/events/eventtarget.js @@ -3,7 +3,7 @@ const common = require('../common.js'); const bench = common.createBenchmark(main, { n: [1e6], - listeners: [1, 5, 10] + listeners: [1, 5, 10], }, { flags: ['--expose-internals'] }); function main({ n, listeners }) { diff --git a/benchmark/https/simple.js b/benchmark/https/simple.js index 243546c346f484..3b4af7caf63192 100644 --- a/benchmark/https/simple.js +++ b/benchmark/https/simple.js @@ -8,7 +8,7 @@ const bench = common.createBenchmark(main, { c: [50, 500], chunkedEnc: [1, 0], benchmarker: ['test-double-https'], - duration: 5 + duration: 5, }); function main({ type, len, chunks, c, chunkedEnc, duration }) { @@ -21,7 +21,7 @@ function main({ type, len, chunks, c, chunkedEnc, duration }) { path, connections: c, scheme: 'https', - duration + duration, }, () => { server.close(); }); diff --git a/benchmark/napi/function_call/index.js b/benchmark/napi/function_call/index.js index 1e1d159c8ad83a..cde4c7ae223945 100644 --- a/benchmark/napi/function_call/index.js +++ b/benchmark/napi/function_call/index.js @@ -38,7 +38,7 @@ assert(js() === cxx()); const bench = common.createBenchmark(main, { type: ['js', 'cxx', 'napi'], - n: [1e6, 1e7, 5e7] + n: [1e6, 1e7, 5e7], }); function main({ n, type }) { diff --git a/benchmark/os/cpus.js b/benchmark/os/cpus.js index a8aa3ab6cbf46f..5637e786346847 100644 --- a/benchmark/os/cpus.js +++ b/benchmark/os/cpus.js @@ -4,7 +4,7 @@ const common = require('../common.js'); const cpus = require('os').cpus; const bench = common.createBenchmark(main, { - n: [3e4] + n: [3e4], }); function main({ n }) { diff --git a/benchmark/os/loadavg.js b/benchmark/os/loadavg.js index 802e3c99ec0a59..db88c7127aa48e 100644 --- a/benchmark/os/loadavg.js +++ b/benchmark/os/loadavg.js @@ -4,7 +4,7 @@ const common = require('../common.js'); const loadavg = require('os').loadavg; const bench = common.createBenchmark(main, { - n: [5e6] + n: [5e6], }); function main({ n }) { diff --git a/benchmark/os/networkInterfaces.js b/benchmark/os/networkInterfaces.js index 12e956b7f05ddc..114e47508cfed4 100644 --- a/benchmark/os/networkInterfaces.js +++ b/benchmark/os/networkInterfaces.js @@ -4,7 +4,7 @@ const common = require('../common.js'); const networkInterfaces = require('os').networkInterfaces; const bench = common.createBenchmark(main, { - n: [1e4] + n: [1e4], }); function main({ n }) { diff --git a/benchmark/perf_hooks/resourcetiming.js b/benchmark/perf_hooks/resourcetiming.js index c71cfeae7ef06b..ddc40767b16196 100644 --- a/benchmark/perf_hooks/resourcetiming.js +++ b/benchmark/perf_hooks/resourcetiming.js @@ -18,7 +18,7 @@ function createTimingInfo({ endTime = 0, encodedBodySize = 0, decodedBodySize = 0, - finalConnectionTimingInfo = null + finalConnectionTimingInfo = null, }) { if (finalConnectionTimingInfo !== null) { finalConnectionTimingInfo.domainLookupStartTime = @@ -61,7 +61,7 @@ function test() { 'http://localhost:8080', 'fetch', {}, - '' + '', ); } diff --git a/benchmark/policy/policy-startup.js b/benchmark/policy/policy-startup.js index 1588123d8007d9..9ee84fff4d0452 100644 --- a/benchmark/policy/policy-startup.js +++ b/benchmark/policy/policy-startup.js @@ -4,11 +4,11 @@ const common = require('../common.js'); const configs = { - n: [1024] + n: [1024], }; const options = { - flags: ['--expose-internals'] + flags: ['--expose-internals'], }; const bench = common.createBenchmark(main, configs, options); @@ -25,12 +25,12 @@ function main(conf) { integrity: `sha256-${hash(`// ./_${i}`, 'sha256')}`, dependencies: Object.fromEntries(Array.from({ // Average 3 deps per 4 modules - length: Math.floor((i % 4) / 2) + length: Math.floor((i % 4) / 2), }, (_, ii) => { return [`_${ii}`, `./_${i - ii}`]; })), }]; - }) + }), ); const json = JSON.parse(JSON.stringify({ resources }), (_, o) => { if (o && typeof o === 'object') { diff --git a/benchmark/querystring/querystring-stringify.js b/benchmark/querystring/querystring-stringify.js index d1b724fcf2c14d..28b72a68506fd1 100644 --- a/benchmark/querystring/querystring-stringify.js +++ b/benchmark/querystring/querystring-stringify.js @@ -12,22 +12,22 @@ function main({ type, n }) { noencode: { foo: 'bar', baz: 'quux', - xyzzy: 'thud' + xyzzy: 'thud', }, encodemany: { '\u0080\u0083\u0089': 'bar', '\u008C\u008E\u0099': 'quux', - 'xyzzy': '\u00A5q\u00A3r' + 'xyzzy': '\u00A5q\u00A3r', }, encodelast: { foo: 'bar', baz: 'quux', - xyzzy: 'thu\u00AC' + xyzzy: 'thu\u00AC', }, array: { foo: [], baz: ['bar'], - xyzzy: ['bar', 'quux', 'thud'] + xyzzy: ['bar', 'quux', 'thud'], }, multiprimitives: { foo: false, diff --git a/benchmark/readline/readline-iterable.js b/benchmark/readline/readline-iterable.js index e706c7f2f1506e..e92e5d005ea1d0 100644 --- a/benchmark/readline/readline-iterable.js +++ b/benchmark/readline/readline-iterable.js @@ -27,7 +27,7 @@ function getLoremIpsumStream(repetitions) { }); let i = 0; readable._read = () => readable.push( - i++ >= repetitions ? null : loremIpsum + i++ >= repetitions ? null : loremIpsum, ); return readable; } diff --git a/benchmark/run.js b/benchmark/run.js index a3c9da12f8b9c8..0b63fb930bb000 100644 --- a/benchmark/run.js +++ b/benchmark/run.js @@ -42,7 +42,7 @@ if (format === 'csv') { const filename = benchmarks[i]; const child = fork( path.resolve(__dirname, filename), - cli.test ? ['--test'] : cli.optional.set + cli.test ? ['--test'] : cli.optional.set, ); if (format !== 'csv') { diff --git a/benchmark/streams/creation.js b/benchmark/streams/creation.js index 760ab5c89dca96..0fb0b1ddb696ea 100644 --- a/benchmark/streams/creation.js +++ b/benchmark/streams/creation.js @@ -9,7 +9,7 @@ const { const bench = common.createBenchmark(main, { n: [50e6], - kind: ['duplex', 'readable', 'transform', 'writable'] + kind: ['duplex', 'readable', 'transform', 'writable'], }); function main({ n, kind }) { diff --git a/benchmark/streams/destroy.js b/benchmark/streams/destroy.js index c6811139d8c443..c0717b1dd03a68 100644 --- a/benchmark/streams/destroy.js +++ b/benchmark/streams/destroy.js @@ -9,7 +9,7 @@ const { const bench = common.createBenchmark(main, { n: [1e6], - kind: ['duplex', 'readable', 'transform', 'writable'] + kind: ['duplex', 'readable', 'transform', 'writable'], }); function main({ n, kind }) { diff --git a/benchmark/streams/pipe-object-mode.js b/benchmark/streams/pipe-object-mode.js index 33588819f00a6c..f6f0e5a6ba0016 100644 --- a/benchmark/streams/pipe-object-mode.js +++ b/benchmark/streams/pipe-object-mode.js @@ -4,7 +4,7 @@ const common = require('../common'); const { Readable, Writable } = require('stream'); const bench = common.createBenchmark(main, { - n: [5e6] + n: [5e6], }); function main({ n }) { diff --git a/benchmark/streams/pipe.js b/benchmark/streams/pipe.js index 0df1afdbe10134..a19267b4244993 100644 --- a/benchmark/streams/pipe.js +++ b/benchmark/streams/pipe.js @@ -4,7 +4,7 @@ const common = require('../common'); const { Readable, Writable } = require('stream'); const bench = common.createBenchmark(main, { - n: [5e6] + n: [5e6], }); function main({ n }) { diff --git a/benchmark/streams/readable-async-iterator.js b/benchmark/streams/readable-async-iterator.js index 3d06eda7458105..e8e8355444069a 100644 --- a/benchmark/streams/readable-async-iterator.js +++ b/benchmark/streams/readable-async-iterator.js @@ -21,7 +21,7 @@ async function main({ n, sync }) { this.push(1); }); } - } + }, }); bench.start(); diff --git a/benchmark/streams/readable-bigread.js b/benchmark/streams/readable-bigread.js index 1bd1dab4edb07f..0d963c6803299e 100644 --- a/benchmark/streams/readable-bigread.js +++ b/benchmark/streams/readable-bigread.js @@ -4,7 +4,7 @@ const common = require('../common'); const Readable = require('stream').Readable; const bench = common.createBenchmark(main, { - n: [1e3] + n: [1e3], }); function main({ n }) { diff --git a/benchmark/streams/readable-bigunevenread.js b/benchmark/streams/readable-bigunevenread.js index 684986a778aba2..f02c464d71cf9a 100644 --- a/benchmark/streams/readable-bigunevenread.js +++ b/benchmark/streams/readable-bigunevenread.js @@ -4,7 +4,7 @@ const common = require('../common'); const Readable = require('stream').Readable; const bench = common.createBenchmark(main, { - n: [1e3] + n: [1e3], }); function main({ n }) { diff --git a/benchmark/streams/readable-boundaryread.js b/benchmark/streams/readable-boundaryread.js index edc90d04de161d..5872c62f4aebd1 100644 --- a/benchmark/streams/readable-boundaryread.js +++ b/benchmark/streams/readable-boundaryread.js @@ -5,7 +5,7 @@ const Readable = require('stream').Readable; const bench = common.createBenchmark(main, { n: [200e1], - type: ['string', 'buffer'] + type: ['string', 'buffer'], }); function main({ n, type }) { diff --git a/benchmark/streams/readable-readall.js b/benchmark/streams/readable-readall.js index d14fd7756586e9..b62b1d05b13876 100644 --- a/benchmark/streams/readable-readall.js +++ b/benchmark/streams/readable-readall.js @@ -4,7 +4,7 @@ const common = require('../common'); const Readable = require('stream').Readable; const bench = common.createBenchmark(main, { - n: [50e2] + n: [50e2], }); function main({ n }) { diff --git a/benchmark/streams/readable-unevenread.js b/benchmark/streams/readable-unevenread.js index 9da8410131bfff..f12c89617c0a52 100644 --- a/benchmark/streams/readable-unevenread.js +++ b/benchmark/streams/readable-unevenread.js @@ -4,7 +4,7 @@ const common = require('../common'); const Readable = require('stream').Readable; const bench = common.createBenchmark(main, { - n: [1e3] + n: [1e3], }); function main({ n }) { diff --git a/benchmark/streams/writable-manywrites.js b/benchmark/streams/writable-manywrites.js index 025a5017ee6446..e6ab65162c366c 100644 --- a/benchmark/streams/writable-manywrites.js +++ b/benchmark/streams/writable-manywrites.js @@ -8,7 +8,7 @@ const bench = common.createBenchmark(main, { sync: ['yes', 'no'], writev: ['yes', 'no'], callback: ['yes', 'no'], - len: [1024, 32 * 1024] + len: [1024, 32 * 1024], }); function main({ n, sync, writev, callback, len }) { diff --git a/benchmark/string_decoder/string-decoder-create.js b/benchmark/string_decoder/string-decoder-create.js index 641e562fdeab3d..efd01e8bbe7e61 100644 --- a/benchmark/string_decoder/string-decoder-create.js +++ b/benchmark/string_decoder/string-decoder-create.js @@ -6,7 +6,7 @@ const bench = common.createBenchmark(main, { encoding: [ 'ascii', 'utf8', 'utf-8', 'base64', 'ucs2', 'UTF-8', 'AscII', 'UTF-16LE', ], - n: [25e6] + n: [25e6], }); function main({ encoding, n }) { diff --git a/benchmark/string_decoder/string-decoder.js b/benchmark/string_decoder/string-decoder.js index afc0dde62e7937..8acb9c15bfd6f3 100644 --- a/benchmark/string_decoder/string-decoder.js +++ b/benchmark/string_decoder/string-decoder.js @@ -6,7 +6,7 @@ const bench = common.createBenchmark(main, { encoding: ['ascii', 'utf8', 'base64-utf8', 'base64-ascii', 'utf16le'], inLen: [32, 128, 1024, 4096], chunkLen: [16, 64, 256, 1024], - n: [25e5] + n: [25e5], }); const UTF8_ALPHA = 'Blåbærsyltetøy'; diff --git a/benchmark/timers/immediate.js b/benchmark/timers/immediate.js index 3bd4c097dce5a0..ccd26b86759c1c 100644 --- a/benchmark/timers/immediate.js +++ b/benchmark/timers/immediate.js @@ -3,7 +3,7 @@ const common = require('../common.js'); const bench = common.createBenchmark(main, { n: [5e6], - type: ['depth', 'depth1', 'breadth', 'breadth1', 'breadth4', 'clear'] + type: ['depth', 'depth1', 'breadth', 'breadth1', 'breadth4', 'clear'], }); function main({ n, type }) { diff --git a/benchmark/timers/set-immediate-breadth-args.js b/benchmark/timers/set-immediate-breadth-args.js index 6d556f9186b7c7..cdfeebe94a07a7 100644 --- a/benchmark/timers/set-immediate-breadth-args.js +++ b/benchmark/timers/set-immediate-breadth-args.js @@ -2,7 +2,7 @@ const common = require('../common.js'); const bench = common.createBenchmark(main, { - n: [5e6] + n: [5e6], }); function main({ n }) { diff --git a/benchmark/timers/set-immediate-breadth.js b/benchmark/timers/set-immediate-breadth.js index 87bf9ee2c39479..a39b34acfce40e 100644 --- a/benchmark/timers/set-immediate-breadth.js +++ b/benchmark/timers/set-immediate-breadth.js @@ -2,7 +2,7 @@ const common = require('../common.js'); const bench = common.createBenchmark(main, { - n: [1e7] + n: [1e7], }); function main({ n }) { diff --git a/benchmark/timers/set-immediate-depth-args.js b/benchmark/timers/set-immediate-depth-args.js index a01a400d5f4bc5..a6563d439afcd1 100644 --- a/benchmark/timers/set-immediate-depth-args.js +++ b/benchmark/timers/set-immediate-depth-args.js @@ -2,7 +2,7 @@ const common = require('../common.js'); const bench = common.createBenchmark(main, { - n: [5e6] + n: [5e6], }); function main({ n }) { diff --git a/benchmark/timers/timers-cancel-unpooled.js b/benchmark/timers/timers-cancel-unpooled.js index 70f8fd96c9cbf1..2e627a0367402e 100644 --- a/benchmark/timers/timers-cancel-unpooled.js +++ b/benchmark/timers/timers-cancel-unpooled.js @@ -4,7 +4,7 @@ const assert = require('assert'); const bench = common.createBenchmark(main, { n: [1e6], - direction: ['start', 'end'] + direction: ['start', 'end'], }); function main({ n, direction }) { diff --git a/benchmark/timers/timers-insert-unpooled.js b/benchmark/timers/timers-insert-unpooled.js index 5ee255b5e15fd2..ece457e38974bd 100644 --- a/benchmark/timers/timers-insert-unpooled.js +++ b/benchmark/timers/timers-insert-unpooled.js @@ -4,7 +4,7 @@ const assert = require('assert'); const bench = common.createBenchmark(main, { n: [1e6], - direction: ['start', 'end'] + direction: ['start', 'end'], }); function main({ direction, n }) { diff --git a/benchmark/tls/convertprotocols.js b/benchmark/tls/convertprotocols.js index 87c447436a44db..8a8a44facb80f9 100644 --- a/benchmark/tls/convertprotocols.js +++ b/benchmark/tls/convertprotocols.js @@ -4,7 +4,7 @@ const common = require('../common.js'); const tls = require('tls'); const bench = common.createBenchmark(main, { - n: [1, 50000] + n: [1, 50000], }); function main({ n }) { diff --git a/benchmark/tls/secure-pair.js b/benchmark/tls/secure-pair.js index 08be1f7e46f8ba..1c5dd732d1ca9e 100644 --- a/benchmark/tls/secure-pair.js +++ b/benchmark/tls/secure-pair.js @@ -3,9 +3,9 @@ const common = require('../common.js'); const bench = common.createBenchmark(main, { dur: [5], securing: ['SecurePair', 'TLSSocket', 'clear'], - size: [100, 1024, 1024 * 1024] + size: [100, 1024, 1024 * 1024], }, { - flags: ['--no-warnings'] + flags: ['--no-warnings'], }); const fixtures = require('../../test/common/fixtures'); diff --git a/benchmark/tls/throughput-c2s.js b/benchmark/tls/throughput-c2s.js index 023b42cbeda685..bf71f92aecbcfc 100644 --- a/benchmark/tls/throughput-c2s.js +++ b/benchmark/tls/throughput-c2s.js @@ -3,7 +3,7 @@ const common = require('../common.js'); const bench = common.createBenchmark(main, { dur: [5], type: ['buf', 'asc', 'utf'], - size: [100, 1024, 1024 * 1024, 4 * 1024 * 1024, 16 * 1024 * 1024] + size: [100, 1024, 1024 * 1024, 4 * 1024 * 1024, 16 * 1024 * 1024], }); const fixtures = require('../../test/common/fixtures'); diff --git a/benchmark/tls/throughput-s2c.js b/benchmark/tls/throughput-s2c.js index d3018cf851db75..7fb93c304b20f4 100644 --- a/benchmark/tls/throughput-s2c.js +++ b/benchmark/tls/throughput-s2c.js @@ -5,7 +5,7 @@ const bench = common.createBenchmark(main, { type: ['buf', 'asc', 'utf'], sendchunklen: [256, 32 * 1024, 128 * 1024, 16 * 1024 * 1024], recvbuflen: [0, 64 * 1024, 1024 * 1024], - recvbufgenfn: ['true', 'false'] + recvbufgenfn: ['true', 'false'], }); const fixtures = require('../../test/common/fixtures'); @@ -68,8 +68,8 @@ function main({ dur, type, sendchunklen, recvbuflen, recvbufgenfn }) { buffer, callback: function(nread, buf) { received += nread; - } - } + }, + }, }; } diff --git a/benchmark/tls/tls-connect.js b/benchmark/tls/tls-connect.js index db50306485aec3..b398bdb3c3d193 100644 --- a/benchmark/tls/tls-connect.js +++ b/benchmark/tls/tls-connect.js @@ -5,7 +5,7 @@ const tls = require('tls'); const common = require('../common.js'); const bench = common.createBenchmark(main, { concurrency: [1, 10], - dur: [5] + dur: [5], }); let clientConn = 0; @@ -43,7 +43,7 @@ function onConnection(conn) { function makeConnection() { const options = { port: common.PORT, - rejectUnauthorized: false + rejectUnauthorized: false, }; const conn = tls.connect(options, () => { clientConn++; diff --git a/benchmark/v8/get-stats.js b/benchmark/v8/get-stats.js index d5ce102774df6e..21c6efb2f8588d 100644 --- a/benchmark/v8/get-stats.js +++ b/benchmark/v8/get-stats.js @@ -8,7 +8,7 @@ const bench = common.createBenchmark(main, { 'getHeapStatistics', 'getHeapSpaceStatistics', ], - n: [1e6] + n: [1e6], }); function main({ method, n }) { diff --git a/benchmark/v8/serialize.js b/benchmark/v8/serialize.js index 331c576a1b490b..c370da49ea7cca 100644 --- a/benchmark/v8/serialize.js +++ b/benchmark/v8/serialize.js @@ -5,7 +5,7 @@ const v8 = require('v8'); const bench = common.createBenchmark(main, { len: [256, 1024 * 16, 1024 * 512], - n: [1e6] + n: [1e6], }); function main({ n, len }) { diff --git a/benchmark/vm/create-context.js b/benchmark/vm/create-context.js index d74cafe6a0a7b0..d9e948f2c9c2e0 100644 --- a/benchmark/vm/create-context.js +++ b/benchmark/vm/create-context.js @@ -3,7 +3,7 @@ const common = require('../common.js'); const bench = common.createBenchmark(main, { - n: [100] + n: [100], }); const vm = require('vm'); diff --git a/benchmark/vm/run-in-context.js b/benchmark/vm/run-in-context.js index 980a08e7e56e8c..1234c5609832e7 100644 --- a/benchmark/vm/run-in-context.js +++ b/benchmark/vm/run-in-context.js @@ -5,7 +5,7 @@ const common = require('../common.js'); const bench = common.createBenchmark(main, { n: [1], breakOnSigint: [0, 1], - withSigintListener: [0, 1] + withSigintListener: [0, 1], }); const vm = require('vm'); diff --git a/benchmark/vm/run-in-this-context.js b/benchmark/vm/run-in-this-context.js index c612c1ea49ecf6..517812ecfc95e6 100644 --- a/benchmark/vm/run-in-this-context.js +++ b/benchmark/vm/run-in-this-context.js @@ -5,7 +5,7 @@ const common = require('../common.js'); const bench = common.createBenchmark(main, { n: [1], breakOnSigint: [0, 1], - withSigintListener: [0, 1] + withSigintListener: [0, 1], }); const vm = require('vm'); diff --git a/benchmark/webstreams/creation.js b/benchmark/webstreams/creation.js index 085faba8b89864..babd9101b60439 100644 --- a/benchmark/webstreams/creation.js +++ b/benchmark/webstreams/creation.js @@ -9,7 +9,7 @@ const assert = require('assert'); const bench = common.createBenchmark(main, { n: [50e3], - kind: ['ReadableStream', 'TransformStream', 'WritableStream'] + kind: ['ReadableStream', 'TransformStream', 'WritableStream'], }); let rs, ws, ts; diff --git a/benchmark/webstreams/pipe-to.js b/benchmark/webstreams/pipe-to.js index a41b31b5e127ec..2b765bf2051569 100644 --- a/benchmark/webstreams/pipe-to.js +++ b/benchmark/webstreams/pipe-to.js @@ -23,7 +23,7 @@ async function main({ n, highWaterMarkR, highWaterMarkW }) { } else { controller.close(); } - } + }, }); const ws = new WritableStream({ highWaterMark: highWaterMarkW, diff --git a/benchmark/webstreams/readable-async-iterator.js b/benchmark/webstreams/readable-async-iterator.js index 0d7e4737e3a15a..8cdc4785db3dac 100644 --- a/benchmark/webstreams/readable-async-iterator.js +++ b/benchmark/webstreams/readable-async-iterator.js @@ -13,7 +13,7 @@ async function main({ n }) { const rs = new ReadableStream({ pull: function(controller) { controller.enqueue(1); - } + }, }); let x = 0; diff --git a/benchmark/worker/atomics-wait.js b/benchmark/worker/atomics-wait.js index a771b1813731ed..7270f9f01c98ec 100644 --- a/benchmark/worker/atomics-wait.js +++ b/benchmark/worker/atomics-wait.js @@ -3,7 +3,7 @@ const common = require('../common.js'); const bench = common.createBenchmark(main, { - n: [1e7] + n: [1e7], }); function main({ n }) { diff --git a/benchmark/worker/echo.js b/benchmark/worker/echo.js index 7988ffc7e121eb..face91b2b35d23 100644 --- a/benchmark/worker/echo.js +++ b/benchmark/worker/echo.js @@ -7,7 +7,7 @@ const bench = common.createBenchmark(main, { workers: [1], payload: ['string', 'object'], sendsPerBroadcast: [1, 10], - n: [1e5] + n: [1e5], }); const workerPath = path.resolve(__dirname, '..', 'fixtures', 'echo.worker.js'); diff --git a/benchmark/worker/messageport.js b/benchmark/worker/messageport.js index 2f0d6f0621e8c8..d689c0d18d3bae 100644 --- a/benchmark/worker/messageport.js +++ b/benchmark/worker/messageport.js @@ -5,7 +5,7 @@ const { MessageChannel } = require('worker_threads'); const bench = common.createBenchmark(main, { payload: ['string', 'object'], style: ['eventtarget', 'eventemitter'], - n: [1e6] + n: [1e6], }); function main(conf) { diff --git a/benchmark/zlib/createInflate.js b/benchmark/zlib/createInflate.js index 30ccaef7a14fb2..a7aa6882cf432a 100644 --- a/benchmark/zlib/createInflate.js +++ b/benchmark/zlib/createInflate.js @@ -5,7 +5,7 @@ const zlib = require('zlib'); const bench = common.createBenchmark(main, { inputLen: [16 * 1024 * 1024], chunkLen: [1024], - n: [1e2] + n: [1e2], }); function main({ n, inputLen, chunkLen }) { diff --git a/benchmark/zlib/creation.js b/benchmark/zlib/creation.js index c2d063c20d8d02..90b22780d2d312 100644 --- a/benchmark/zlib/creation.js +++ b/benchmark/zlib/creation.js @@ -8,7 +8,7 @@ const bench = common.createBenchmark(main, { 'BrotliCompress', 'BrotliDecompress', ], options: ['true', 'false'], - n: [5e5] + n: [5e5], }); function main({ n, type, options }) { diff --git a/benchmark/zlib/deflate.js b/benchmark/zlib/deflate.js index 5baedc924d4bc8..ab9ff333224a0e 100644 --- a/benchmark/zlib/deflate.js +++ b/benchmark/zlib/deflate.js @@ -5,7 +5,7 @@ const zlib = require('zlib'); const bench = common.createBenchmark(main, { method: ['createDeflate', 'deflate', 'deflateSync'], inputLen: [1024], - n: [4e5] + n: [4e5], }); function main({ n, method, inputLen }) { diff --git a/benchmark/zlib/inflate.js b/benchmark/zlib/inflate.js index e4642b394468a9..a65b00f78a5059 100644 --- a/benchmark/zlib/inflate.js +++ b/benchmark/zlib/inflate.js @@ -5,7 +5,7 @@ const zlib = require('zlib'); const bench = common.createBenchmark(main, { method: ['inflate', 'inflateSync'], inputLen: [1024], - n: [4e5] + n: [4e5], }); function main({ n, method, inputLen }) { diff --git a/benchmark/zlib/pipe.js b/benchmark/zlib/pipe.js index 76b0ddc6c65a25..a9c86e3de660a9 100644 --- a/benchmark/zlib/pipe.js +++ b/benchmark/zlib/pipe.js @@ -7,12 +7,12 @@ const bench = common.createBenchmark(main, { inputLen: [1024], duration: [5], type: ['string', 'buffer'], - algorithm: ['gzip', 'brotli'] + algorithm: ['gzip', 'brotli'], }, { test: { inputLen: 1024, - duration: 0.2 - } + duration: 0.2, + }, }); function main({ inputLen, duration, type, algorithm }) {