Skip to content

Commit 9289c97

Browse files
committed
Fix Spacing and Library Name in bench.js
The spacing in scripts/bench.js was off, leading to an unconsitent visual output when running the benchmark. Furthermore, the benchmark was still named ultraflags.
1 parent 59c6d5c commit 9289c97

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/bench.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ const bench = new benchmark.Suite();
99
const args = ['--a=1', '-b', '--bool', '--no-boop', '--multi=foo', '--multi=baz', '-xyz'];
1010

1111
bench
12-
.add('ultraflag ', () => ultraflag(args))
13-
.add('mri ', () => mri(args))
14-
.add('minimist ', () => minimist(args))
15-
.add('node:util', () => parseArgs({ args, strict: false, allowNegative: true, options: { bool: { type: 'boolean', short: 'b' }, boop: { type: 'boolean' }, multi: { type: 'string' }} }))
16-
.add('yargs-parser ', () => yargs(args))
12+
.add('args ', () => ultraflag(args))
13+
.add('minimist ', () => minimist(args))
14+
.add('mri ', () => mri(args))
15+
.add('node:util ', () => parseArgs({ args, strict: false, allowNegative: true, options: { bool: { type: 'boolean', short: 'b' }, boop: { type: 'boolean' }, multi: { type: 'string' }} }))
16+
.add('yargs-parser', () => yargs(args))
1717
.on('cycle', e => console.log(String(e.target)))
1818
.run();

0 commit comments

Comments
 (0)