MCPcopy 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
27function fillStorage(storage, n) {
28 for (let i = 0; i < n; i++) {
29 storage.setItem(i, i);
30 }
31}
32
33function main({ n, type }) {
34 const localStorage = globalThis.localStorage;

Callers 1

mainFunction · 0.70

Calls 1

setItemMethod · 0.45

Tested by

no test coverage detected