Skip to content

Commit 1497244

Browse files
aduh95danielleadams
authored andcommitted
benchmark: add trailing commas in benchmark/misc
PR-URL: #46474 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
1 parent 057e3f5 commit 1497244

File tree

10 files changed

+17
-18
lines changed

10 files changed

+17
-18
lines changed

‎benchmark/.eslintrc.yaml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ overrides:
1212
- crypto/*.js
1313
- http/*.js
1414
- http2/*.js
15-
- misc/*.js
1615
- path/*.js
1716
- process/*.js
1817
- url/*.js

‎benchmark/misc/arguments.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const methods = [
1212

1313
constbench=createBenchmark(main,{
1414
method: methods,
15-
n: [1e6]
15+
n: [1e6],
1616
});
1717

1818
functionusingRestAndSpread(...args){

‎benchmark/misc/freelist.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
constcommon=require('../common.js');
44

55
constbench=common.createBenchmark(main,{
6-
n: [100000]
6+
n: [100000],
77
},{
8-
flags: ['--expose-internals']
8+
flags: ['--expose-internals'],
99
});
1010

1111
functionmain({ n }){

‎benchmark/misc/getstringwidth.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ const common = require('../common.js');
44

55
constbench=common.createBenchmark(main,{
66
type: ['ascii','mixed','emojiseq','fullwidth'],
7-
n: [10e4]
7+
n: [10e4],
88
},{
9-
flags: ['--expose-internals']
9+
flags: ['--expose-internals'],
1010
});
1111

1212
functionmain({ n, type }){
@@ -16,7 +16,7 @@ function main({n, type }){
1616
ascii: 'foobar'.repeat(100),
1717
mixed: 'foo'.repeat(100)+'😀'+'bar'.repeat(100),
1818
emojiseq: '👨‍👨‍👧‍👦👨‍👩‍👦‍👦👨‍👩‍👧‍👧👩‍👩‍👧‍👦'.repeat(10),
19-
fullwidth: '你好'.repeat(150)
19+
fullwidth: '你好'.repeat(150),
2020
})[type];
2121

2222
bench.start();

‎benchmark/misc/hidestackframes.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ const common = require('../common.js');
55
constbench=common.createBenchmark(main,{
66
type: ['hide-stackframes-throw','direct-call-throw',
77
'hide-stackframes-noerr','direct-call-noerr'],
8-
n: [10e4]
8+
n: [10e4],
99
},{
10-
flags: ['--expose-internals']
10+
flags: ['--expose-internals'],
1111
});
1212

1313
functionmain({ n, type }){

‎benchmark/misc/object-property-bench.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const common = require('../common.js');
66

77
constbench=common.createBenchmark(main,{
88
method: ['property','string','variable','symbol'],
9-
n: [1e9]
9+
n: [1e9],
1010
});
1111

1212
functionrunProperty(n){

‎benchmark/misc/print.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const{spawn } = require('child_process');
44

55
constbench=common.createBenchmark(main,{
66
dur: [1],
7-
code: ['1','"string"','process.versions','process']
7+
code: ['1','"string"','process.versions','process'],
88
});
99

1010
functionspawnProcess(code){
@@ -47,7 +47,7 @@ function start(state, code, bench, getNode){
4747
functionmain({ dur, code }){
4848
conststate={
4949
go: true,
50-
throughput: 0
50+
throughput: 0,
5151
};
5252

5353
setTimeout(()=>{

‎benchmark/misc/punycode.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const bench = common.createBenchmark(main,{
3535
'איקו״ם.ישראל.museum',
3636
'日本.icom.museum',
3737
'الأردن.icom.museum',
38-
]
38+
],
3939
});
4040

4141
functionusingPunycode(val){

‎benchmark/misc/trace.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ const common = require('../common.js');
44

55
constbench=common.createBenchmark(main,{
66
n: [100000],
7-
method: ['trace','isTraceCategoryEnabled']
7+
method: ['trace','isTraceCategoryEnabled'],
88
},{
99
flags: [
1010
'--expose-internals',
1111
'--no-warnings',
1212
'--trace-event-categories','foo',
13-
]
13+
],
1414
});
1515

1616
const{
17-
TRACE_EVENT_PHASE_NESTABLE_ASYNC_BEGIN: kBeforeEvent
17+
TRACE_EVENT_PHASE_NESTABLE_ASYNC_BEGIN: kBeforeEvent,
1818
}=common.binding('constants').trace;
1919

2020
functiondoTrace(n,trace){
@@ -37,7 +37,7 @@ function doIsTraceCategoryEnabled(n, isTraceCategoryEnabled){
3737
functionmain({ n, method }){
3838
const{
3939
trace,
40-
isTraceCategoryEnabled
40+
isTraceCategoryEnabled,
4141
}=common.binding('trace_events');
4242

4343
switch(method){

‎benchmark/misc/util-extend-vs-object-assign.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const util = require('util');
55

66
constbench=common.createBenchmark(main,{
77
type: ['extend','assign'],
8-
n: [10e4]
8+
n: [10e4],
99
});
1010

1111
functionmain({ n, type }){

0 commit comments

Comments
(0)