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

Function measureDir

benchmark/module/module-loader-deep.js:38–49  ·  view source on GitHub ↗
(cache, files)

Source from the content-addressed store, hash-verified

36}
37
38function measureDir(cache, files) {
39 if (cache) {
40 for (let i = 0; i <= files; i++) {
41 require(`${benchmarkDirectory}/${i}`);
42 }
43 }
44 bench.start();
45 for (let i = 0; i <= files; i++) {
46 require(`${benchmarkDirectory}/${i}`);
47 }
48 bench.end(files);
49}

Callers 1

mainFunction · 0.70

Calls 3

requireFunction · 0.50
startMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…