mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
0903515e12
PR-URL: https://github.com/nodejs/node/pull/43077 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
15 lines
229 B
JavaScript
15 lines
229 B
JavaScript
'use strict';
|
|
|
|
const common = require('../common.js');
|
|
|
|
const bench = common.createBenchmark(main, {
|
|
n: [1e7],
|
|
});
|
|
|
|
function main({ n }) {
|
|
bench.start();
|
|
for (let i = 0; i < n; ++i)
|
|
new Error('test');
|
|
bench.end(n);
|
|
}
|