blob: 012712a1fe64f5a4101e6bf9377a2d76dbed363f [file] [edit]
'use strict';
const common = require('../../common.js');
const binding = require(`./build/${common.buildType}/binding`);
const bench = common.createBenchmark(main, {
n: [5e6],
implem: ['runFastPath', 'runSlowPath'],
});
function main({ n, implem }) {
const objs = Array(n).fill(null).map((item) => new Object());
binding[implem](bench, objs);
}