Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ fillStorage
Function
fillStorage
benchmark/webstorage/getItem.js:27–31 ·
view source on GitHub ↗
(storage, n)
Source
from the content-addressed store, hash-verified
25
}, options);
26
27
function
fillStorage(storage, n) {
28
for
(
let
i = 0; i < n; i++) {
29
storage.setItem(i, i);
30
}
31
}
32
33
function
main({ n,
type
}) {
34
const
localStorage = globalThis.localStorage;
Callers
1
main
Function · 0.70
Calls
1
setItem
Method · 0.45
Tested by
no test coverage detected