benchmark: print score to five decimal places
authorYosuke Furukawa <yosuke.furukawa@gmail.com>
Mon, 19 Jan 2015 19:12:29 +0000 (04:12 +0900)
committerBen Noordhuis <info@bnoordhuis.nl>
Wed, 21 Jan 2015 00:21:44 +0000 (01:21 +0100)
PR-URL: https://github.com/iojs/io.js/pull/516
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
benchmark/common.js

index a6a1d87..d4b8bdf 100644 (file)
@@ -201,7 +201,7 @@ Benchmark.prototype.end = function(operations) {
 Benchmark.prototype.report = function(value) {
   var heading = this.getHeading();
   if (!silent)
-    console.log('%s: %s', heading, value.toFixed(0));
+    console.log('%s: %s', heading, value.toFixed(5));
   process.exit(0);
 };