Skip to content

Commit

Permalink
show ms above avg
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Apr 27, 2012
1 parent 116f7ab commit 7ba0a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bm.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ cases.forEach(function(test){
}) / avgs.length;

if (avg > avgavg) {
console.log(' \033[31m%s \033[31m%dms\033[0m', name, avg | 0);
console.log(' \033[31m%s \033[31m%dms \033[90m+%dms\033[0m', name, avg | 0, avg - avgavg | 0);
} else {
console.log(' \033[36m%s \033[90m%dms\033[0m', name, avg | 0);
}
Expand Down

0 comments on commit 7ba0a49

Please sign in to comment.