MCPcopy 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
10function 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

btoaFunction · 0.85
atobFunction · 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…