GeezerVison is showing github.com — benchmark: add trailing commas in `benchmark/process` · nodejs/node@8036583
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: benchmark/.eslintrc.yaml -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -13,7 +13,6 @@ overrides: | 13 | 13 | - http/*.js | 14 | 14 | - http2/*.js | 15 | 15 | - path/*.js | 16 | | - - process/*.js | 17 | 16 | - url/*.js | 18 | 17 | rules: | 19 | 18 | comma-dangle: [error, { | |
Collapse file Copy file name to clipboardExpand all lines: benchmark/process/bench-env.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -4,7 +4,7 @@ const common = require('../common'); | 4 | 4 |
| 5 | 5 | const bench = common.createBenchmark(main, { | 6 | 6 | n: [1e6], | 7 | | - operation: ['get', 'set', 'enumerate', 'query', 'delete'] | | 7 | + operation: ['get', 'set', 'enumerate', 'query', 'delete'], | 8 | 8 | }); | 9 | 9 |
| 10 | 10 |
| |
Collapse file Copy file name to clipboardExpand all lines: benchmark/process/bench-hrtime.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -5,7 +5,7 @@ const assert = require('assert'); | 5 | 5 |
| 6 | 6 | const bench = common.createBenchmark(main, { | 7 | 7 | n: [1e6], | 8 | | - type: ['raw', 'diff', 'bigint'] | | 8 | + type: ['raw', 'diff', 'bigint'], | 9 | 9 | }); | 10 | 10 |
| 11 | 11 | function main({ n, type }) { | |
Collapse file Copy file name to clipboardExpand all lines: benchmark/process/coverage.js +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 4 | 4 |
| 5 | 5 | const common = require('../common.js'); | 6 | 6 | const bench = common.createBenchmark(main, { | 7 | | - n: [1e5] | | 7 | + n: [1e5], | 8 | 8 | }); | 9 | 9 | const path = require('path'); | 10 | 10 | const { rmSync } = require('fs'); | @@ -21,8 +21,8 @@ function main({ n }) { | 21 | 21 | env: { | 22 | 22 | NODE_V8_COVERAGE: coverageDir, | 23 | 23 | N: n, | 24 | | - ...process.env | 25 | | - } | | 24 | + ...process.env, | | 25 | + }, | 26 | 26 | }); | 27 | 27 | bench.end(n); | 28 | 28 | rmSync(coverageDir, { recursive: true, force: true }); | |
Collapse file Copy file name to clipboardExpand all lines: benchmark/process/memoryUsage.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 2 | 2 |
| 3 | 3 | const common = require('../common.js'); | 4 | 4 | const bench = common.createBenchmark(main, { | 5 | | - n: [1e5] | | 5 | + n: [1e5], | 6 | 6 | }); | 7 | 7 |
| 8 | 8 | function main({ n }) { | |
Collapse file Copy file name to clipboardExpand all lines: benchmark/process/next-tick-breadth-args.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 2 | 2 |
| 3 | 3 | const common = require('../common.js'); | 4 | 4 | const bench = common.createBenchmark(main, { | 5 | | - n: [1e7] | | 5 | + n: [1e7], | 6 | 6 | }); | 7 | 7 |
| 8 | 8 | function main({ n }) { | |
Collapse file Copy file name to clipboardExpand all lines: benchmark/process/next-tick-breadth.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 2 | 2 |
| 3 | 3 | const common = require('../common.js'); | 4 | 4 | const bench = common.createBenchmark(main, { | 5 | | - n: [1e7] | | 5 | + n: [1e7], | 6 | 6 | }); | 7 | 7 |
| 8 | 8 | function main({ n }) { | |
Collapse file Copy file name to clipboardExpand all lines: benchmark/process/next-tick-depth-args.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 2 | 2 |
| 3 | 3 | const common = require('../common.js'); | 4 | 4 | const bench = common.createBenchmark(main, { | 5 | | - n: [7e6] | | 5 | + n: [7e6], | 6 | 6 | }); | 7 | 7 |
| 8 | 8 | function main({ n }) { | |
Collapse file Copy file name to clipboardExpand all lines: benchmark/process/next-tick-depth.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | 'use strict'; | 2 | 2 | const common = require('../common.js'); | 3 | 3 | const bench = common.createBenchmark(main, { | 4 | | - n: [7e6] | | 4 | + n: [7e6], | 5 | 5 | }); | 6 | 6 |
| 7 | 7 | function main({ n }) { | |
Collapse file Copy file name to clipboardExpand all lines: benchmark/process/next-tick-exec-args.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | 'use strict'; | 2 | 2 | const common = require('../common.js'); | 3 | 3 | const bench = common.createBenchmark(main, { | 4 | | - n: [4e6] | | 4 | + n: [4e6], | 5 | 5 | }); | 6 | 6 |
| 7 | 7 | function main({ n }) { | |
|