MCPcopy Index your code
hub / github.com/nodejs/node / fillStorage

Function fillStorage

benchmark/webstorage/removeItem.js:28–32  ·  view source on GitHub ↗
(storage, n)

Source from the content-addressed store, hash-verified

26}, options);
27
28function fillStorage(storage, n) {
29 for (let i = 0; i < n; i++) {
30 storage.setItem(i, i);
31 }
32}
33
34function main({ n, type }) {
35 const localStorage = globalThis.localStorage;

Callers 1

mainFunction · 0.70

Calls 1

setItemMethod · 0.45

Tested by

no test coverage detected