index.js
function onCycle(cycle, opts) {
  let hz = Math.round(cycle.hz).toLocaleString()
  let rme = '\xb1' + cycle.stats.rme.toFixed(2) + '%'

  // add colors
  hz = color(34) + hz + color(0)
  rme = color(33) + rme + color(0)

  const padding = ' '.repeat(opts.width - cycle.name.length)
  console.log(`${cycle.name}${padding}  ${hz} ops/sec  ${rme}`)
}
function onCycle(cycle, opts) {
  let hz = Math.round(cycle.hz).toLocaleString()
  let rme = '\xb1' + cycle.stats.rme.toFixed(2) + '%'

  // add colors
  hz = color(34) + hz + color(0)
  rme = color(33) + rme + color(0)

  const padding = ' '.repeat(opts.width - cycle.name.length)
  console.log(`${cycle.name}${padding}  ${hz} ops/sec  ${rme}`)
}
function onCycle ( cycle , opts ) { let hz = Math . round ( cycle . hz ) . toLocaleString ( ) let rme = '\xb1' + cycle . stats . rme . toFixed ( 2 ) + '%' // add colors hz = color ( 34 ) + hz + color ( 0 ) rme = color ( 33 ) + rme + color ( 0 ) const padding = ' ' . repeat ( opts . width - cycle . name . length ) console . log ( ` ${ cycle . name } ${ padding } ${ hz } ${ rme } ` ) }
default cycle reporter
default cycle reporter