We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04ec8dc commit 137a84dCopy full SHA for 137a84d
benchmark/test_runner/global-concurrent-tests.js
@@ -2,13 +2,20 @@
2
const common = require('../common');
3
const { it } = require('node:test');
4
5
-const bench = common.createBenchmark(main, {
6
- n: [100, 1000, 1e4],
7
- type: ['sync', 'async'],
8
-}, {
9
- // We don't want to test the reporter here
10
- flags: ['--test-reporter=./benchmark/fixtures/empty-test-reporter.js'],
11
-});
+const bench = common.createBenchmark(
+ main,
+ {
+ n: [100, 1000, 1e4],
+ type: ['sync', 'async'],
+ },
12
+ // We don't want to test the reporter here
13
+ flags: [
14
+ '--test-reporter=./benchmark/fixtures/empty-test-reporter.js',
15
+ '--test-reporter-destination=stdout',
16
+ ],
17
18
+);
19
20
async function run(n, type) {
21
const promises = new Array(n);
benchmark/test_runner/global-sequential-tests.js
@@ -2,14 +2,20 @@
-
// eslint-disable-next-line no-unused-vars
benchmark/test_runner/mock-fn.js
@@ -4,13 +4,20 @@ const common = require('../common');
const assert = require('node:assert');
const { test } = require('node:test');
- n: [1e6],
- mode: ['define', 'execute'],
+ n: [1e6],
+ mode: ['define', 'execute'],
22
const noop = () => {};
23
benchmark/test_runner/run-single-test-file.js
@@ -31,13 +31,20 @@ function setup(numberOfTestFiles) {
31
* Specifically, it compares the performance of running tests in the
32
* same process versus creating multiple processes.
33
*/
34
35
- numberOfTestFiles: [1, 10, 100],
36
- isolation: ['none', 'process'],
37
38
39
40
+ numberOfTestFiles: [1, 10, 100],
+ isolation: ['none', 'process'],
41
42
43
44
45
46
47
48
49
async function runBenchmark({ numberOfTestFiles, isolation }) {
50
const dirPath = getTestDirPath(numberOfTestFiles);
benchmark/test_runner/suite-tests.js
@@ -6,15 +6,22 @@ const reporter = require('../fixtures/empty-test-reporter');
const { describe, it } = require('node:test');
- numberOfSuites: [10, 100],
- testsPerSuite: [10, 100, 1000],
- testType: ['sync', 'async'],
- concurrency: ['yes', 'no'],
+ numberOfSuites: [10, 100],
+ testsPerSuite: [10, 100, 1000],
+ testType: ['sync', 'async'],
+ concurrency: ['yes', 'no'],
24
25
26
async function run({ numberOfSuites, testsPerSuite, testType, concurrency }) {
27
concurrency = concurrency === 'yes';
0 commit comments