Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0329425

Browse filesBrowse files
brunocrohtargos
authored andcommitted
benchmark: update count to n in permission startup
PR-URL: #59872 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 3c8a609 commit 0329425
Copy full SHA for 0329425

File tree

Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed
Open diff view settings
Collapse file

‎benchmark/permission/permission-startup.js‎

Copy file name to clipboardExpand all lines: benchmark/permission/permission-startup.js
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ const bench = common.createBenchmark(main, {
1919
],
2020
prefixPath: ['/tmp'],
2121
nFiles: [10, 100, 1000],
22-
count: [30],
22+
n: [30],
2323
});
2424

2525
function spawnProcess(script, bench, state) {
2626
const cmd = process.execPath || process.argv[0];
27-
while (state.finished < state.count) {
27+
while (state.finished < state.n) {
2828
const child = spawnSync(cmd, script);
2929
if (child.status !== 0) {
3030
console.log('---- STDOUT ----');
@@ -39,13 +39,13 @@ function spawnProcess(script, bench, state) {
3939
bench.start();
4040
}
4141

42-
if (state.finished === state.count) {
43-
bench.end(state.count);
42+
if (state.finished === state.n) {
43+
bench.end(state.n);
4444
}
4545
}
4646
}
4747

48-
function main({ count, script, nFiles, prefixPath }) {
48+
function main({ n, script, nFiles, prefixPath }) {
4949
script = path.resolve(__dirname, '../../', `${script}.js`);
5050
const optionsWithScript = [
5151
'--permission',
@@ -54,6 +54,6 @@ function main({ count, script, nFiles, prefixPath }) {
5454
script,
5555
];
5656
const warmup = 3;
57-
const state = { count, finished: -warmup };
57+
const state = { n, finished: -warmup };
5858
spawnProcess(optionsWithScript, bench, state);
5959
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.