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

Function main

benchmark/blob/resolveObjectURL.js:12–22  ·  view source on GitHub ↗
({ n })

Source from the content-addressed store, hash-verified

10let _resolveObjectURL;
11
12function main({ n }) {
13 const blob = new Blob(['hello']);
14 const id = URL.createObjectURL(blob);
15 bench.start();
16 for (let i = 0; i < n; ++i)
17 _resolveObjectURL = resolveObjectURL(id);
18 bench.end(n);
19
20 // Avoid V8 deadcode (elimination)
21 assert.ok(_resolveObjectURL);
22}

Callers

nothing calls this directly

Calls 4

resolveObjectURLFunction · 0.85
startMethod · 0.45
endMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…