1'use strict'; 2 3const common = require('../../common.js'); 4 5const binding = require(`./build/${common.buildType}/binding`); 6 7const bench = common.createBenchmark(main, { 8 n: [5e6], 9 implem: ['runFastPath', 'runSlowPath'], 10}); 11 12function main({ n, implem }) { 13 const objs = Array(n).fill(null).map((item) => new Object()); 14 binding[implem](bench, objs); 15} 16