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

Function main

benchmark/buffers/buffer-tojson.js:10–17  ·  view source on GitHub ↗
({ n, len })

Source from the content-addressed store, hash-verified

8});
9
10function main({ n, len }) {
11 const buf = Buffer.allocUnsafe(len);
12
13 bench.start();
14 for (let i = 0; i < n; ++i)
15 buf.toJSON();
16 bench.end(n);
17}

Callers

nothing calls this directly

Calls 3

startMethod · 0.45
toJSONMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…