function statusCallback(error, result, latency) {
  if (error) {
    return console.error(chalk.redBright(error));
  }
  console.log(
    chalk.yellowBright(`\n## req #${result.requestIndex + 1} of ${latency.totalRequests}`),
  );
  prettyLogItem('Request elapsed milliseconds:', trunc(result.requestElapsed));
  prettyLogItem(
    'Latency(mean/max/min):',
    trunc(latency.meanLatencyMs),
    '/',
    trunc(latency.maxLatencyMs),
    '/',
    trunc(latency.minLatencyMs),
  );
}
// If you pass in --verbose, this function is called
If you pass in --verbose, this function is called
If you pass in -- verbose this function is called
function statusCallback(error, result, latency) {
  if (error) {
    return console.error(chalk.redBright(error));
  }
  console.log(
    chalk.yellowBright(`\n## req #${result.requestIndex + 1} of ${latency.totalRequests}`),
  );
  prettyLogItem('Request elapsed milliseconds:', trunc(result.requestElapsed));
  prettyLogItem(
    'Latency(mean/max/min):',
    trunc(latency.meanLatencyMs),
    '/',
    trunc(latency.maxLatencyMs),
    '/',
    trunc(latency.minLatencyMs),
  );
}
function statusCallback ( error , result , latency ) { if ( error ) { return console . error ( chalk . redBright ( error ) ) ; } console . log ( chalk . yellowBright ( ` \n ${ result . requestIndex + 1 } ${ latency . totalRequests } ` ) , ) ; prettyLogItem ( 'Request elapsed milliseconds:' , trunc ( result . requestElapsed ) ) ; prettyLogItem ( 'Latency(mean/max/min):' , trunc ( latency . meanLatencyMs ) , '/' , trunc ( latency . maxLatencyMs ) , '/' , trunc ( latency . minLatencyMs ) , ) ; }
If you pass in --verbose, this function is called
If you pass in -- verbose this function is called