Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ main
Function
main
benchmark/buffers/buffer-atob.js:10–20 ·
view source on GitHub ↗
({ n, size })
Source
from the content-addressed store, hash-verified
8
});
9
10
function
main({ n, size }) {
11
const
input = btoa(
'A'
.repeat(size));
12
let
out = 0;
13
14
bench.start();
15
for
(
let
i = 0; i < n; i++) {
16
out += atob(input).length;
17
}
18
bench.end(n);
19
assert.ok(out > 0);
20
}
Callers
nothing calls this directly
Calls
5
btoa
Function · 0.85
atob
Function · 0.85
start
Method · 0.45
end
Method · 0.45
ok
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…