MCPcopy
hub / github.com/mongodb/node-mongodb-native / makeBigArray

Function makeBigArray

test/benchmarks/unitBench/list.bench.js:8–8  ·  view source on GitHub ↗
(length = defaultItemsSize)

Source from the content-addressed store, hash-verified

6const iterations = 100;
7const defaultItemsSize = 100000;
8const makeBigArray = (length = defaultItemsSize) => Array.from({ length }).fill(1);
9const makeReadableTime = nanoseconds => (nanoseconds / 1e6).toFixed(3).padStart(7, ' ');
10const printHistogram = (name, h) => {
11 console.log();

Callers 3

testArrayShiftFunction · 0.85
testListShiftFunction · 0.85
testDenqueShiftFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected