Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add humanize() to bm numbers

  • Loading branch information...
commit ddf300c3ce2a9cd5869f514faa261fa78d4cbcd9 1 parent 99c5ae8
@tj authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 benchmark/sub.js
View
8 benchmark/sub.js
@@ -57,10 +57,10 @@ process.on('SIGINT', function(){
var ms = Date.now() - start;
var avg = mean(results);
console.log('\n');
- console.log(' min: %d ops/s', min(results));
- console.log(' mean: %d ops/s', avg);
- console.log(' median: %d ops/s', median(results));
- console.log(' total: %d ops in %ds', n, ms / 1000);
+ console.log(' min: %s ops/s', humanize(min(results)));
+ console.log(' mean: %s ops/s', humanize(avg));
+ console.log(' median: %s ops/s', humanize(median(results)));
+ console.log(' total: %s ops in %ds', humanize(n), ms / 1000);
console.log(' through: %d mb/s', ((avg * bytes) / 1024 / 1024).toFixed(2));
console.log();
process.exit();
Please sign in to comment.
Something went wrong with that request. Please try again.