Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
10
function
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
start
Method · 0.45
toJSON
Method · 0.45
end
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…