MCPcopy Create free account
hub / github.com/Automattic/mongoose / createDocs

Function createDocs

benchmarks/insertManySimple.js:29–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28 const numDocs = 1500;
29 const createDocs = iteration => {
30 const docs = [];
31 for (let i = 0; i < numDocs; ++i) {
32 docs.push({ foo: 'test foo ' + iteration + ' ' + i });
33 }
34 return docs;
35 };
36
37 for (let i = 0; i < 10; ++i) {
38 // Warm up

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected