MCPcopy Index your code
hub / github.com/nodejs/node / runBenchmark

Function runBenchmark

benchmark/test_runner/run-single-test-file.js:42–54  ·  view source on GitHub ↗
({ numberOfTestFiles, isolation })

Source from the content-addressed store, hash-verified

40});
41
42async function runBenchmark({ numberOfTestFiles, isolation }) {
43 const dirPath = getTestDirPath(numberOfTestFiles);
44 const stream = run({
45 cwd: dirPath,
46 isolation,
47 concurrency: false, // We don't want to run tests concurrently
48 });
49
50 // eslint-disable-next-line no-unused-vars
51 for await (const _ of stream);
52
53 return numberOfTestFiles;
54}
55
56function main(params) {
57 setup(params.numberOfTestFiles);

Callers 1

mainFunction · 0.70

Calls 2

getTestDirPathFunction · 0.85
runFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…