benchmark: fix printing of large numbers
authorBen Noordhuis <info@bnoordhuis.nl>
Fri, 19 Dec 2014 23:03:10 +0000 (00:03 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Sat, 20 Dec 2014 01:38:47 +0000 (02:38 +0100)
commitd0c238cc81a7bc4d67453ae2952d7d9368069f89
treef05e1ef358cc20e9262d5771fda9ae1959740b06
parent1a63b45a2a32b3df60118518bf22171b81b89ba9
benchmark: fix printing of large numbers

Don't use Number#toPrecision(), it switches to scientific notation for
numbers with more digits than the precision; use Number#toFixed().

PR-URL: https://github.com/iojs/io.js/pull/185
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
benchmark/common.js