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

Function testListPush

test/benchmarks/unitBench/list.bench.js:84–95  ·  test/benchmarks/unitBench/list.bench.js::testListPush
()

Source from the content-addressed store, hash-verified

82};
83
84const testListPush = () => {
85 const bigList = new List();
86 const h = createHistogram();
87 for (let runs = 0; runs < iterations; runs++) {
88 h.recordDelta();
89 for (let i = 0; i < defaultItemsSize; i++) bigList.push(1);
90 h.recordDelta();
91 bigList.clear();
92 }
93
94 printHistogram(`push(${defaultItemsSize}) to List`, h);
95};
96
97const testDenquePush = () => {
98 const Denque = require(class="st">'denque');

Callers 1

mainFunction · 0.85

Calls 3

pushMethod · 0.95
clearMethod · 0.95
printHistogramFunction · 0.85

Tested by

no test coverage detected