suite.on('cycle', function (bench, details) { console.log('\n' + suite.name.grey, details.name.white.bold); console.log([ details.hz.toFixed(2).cyan + ' ops/sec'.grey , details.count.toString().white + ' times executed'.grey , 'benchmark took '.grey + details.times.elapsed.toString().white + ' sec.'.grey , ].join(', '.grey)); });
suite.on('cycle', function (bench, details) { console.log('\n' + suite.name.grey, details.name.white.bold); console.log([ details.hz.toFixed(2).cyan + ' ops/sec'.grey , details.count.toString().white + ' times executed'.grey , 'benchmark took '.grey + details.times.elapsed.toString().white + ' sec.'.grey , ].join(', '.grey)); });