Permalink
Browse files

add humanize() to bm numbers

  • Loading branch information...
1 parent 99c5ae8 commit ddf300c3ce2a9cd5869f514faa261fa78d4cbcd9 @tj committed Nov 6, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 benchmark/sub.js
View
@@ -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();

0 comments on commit ddf300c

Please sign in to comment.