The copyright and license notice is already in the LICENSE file. There is no justifiable reason to also require that it be included in every file, since the individual files are not individually distributed except as part of the entire package.
19 lines
363 B
JavaScript
19 lines
363 B
JavaScript
var common = require('../common.js');
|
|
var bench = common.createBenchmark(main, {
|
|
millions: [2]
|
|
});
|
|
|
|
process.maxTickDepth = Infinity;
|
|
|
|
function main(conf) {
|
|
var n = +conf.millions * 1e6;
|
|
|
|
bench.start();
|
|
process.nextTick(onNextTick);
|
|
function onNextTick() {
|
|
if (--n)
|
|
process.nextTick(onNextTick);
|
|
else
|
|
bench.end(+conf.millions);
|
|
}
|
|
}
|