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

Function main

benchmark/perf_hooks/time-origin.js:11–22  ·  view source on GitHub ↗
({ method, n })

Source from the content-addressed store, hash-verified

9});
10
11function main({ method, n }) {
12 switch (method) {
13 case 'timeOrigin':
14 benchTimeOrigin(n);
15 break;
16 case 'toJSON':
17 benchToJSON(n);
18 break;
19 default:
20 throw new Error(`Unsupported method ${method}`);
21 }
22}
23
24function benchTimeOrigin(n) {
25 const arr = [];

Callers

nothing calls this directly

Calls 2

benchTimeOriginFunction · 0.85
benchToJSONFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…