folly: print nice time suffixes in benchmark output
authorAdam Simpkins <simpkins@fb.com>
Sat, 11 Aug 2012 02:15:08 +0000 (19:15 -0700)
committerTudor Bosman <tudorb@fb.com>
Sun, 26 Aug 2012 18:13:03 +0000 (11:13 -0700)
commitefdc68945456c0c71a05d4a58cf8491454af3ce3
tree0cfe9f9eb06f232cdc798a907a4fb38e609057a1
parentc14f40fcb7fef6a2b5c667be5e6a380e82f6233d
folly: print nice time suffixes in benchmark output

Summary: Print the times using "ms" for milliseconds, "us" for microseconds, etc.

Test Plan:
$ ./_bin/folly/test/benchmark_test
======================================================================
folly/test/BenchmarkTest.cpp              relative  time/iter  iters/s
======================================================================
bmFun                                                  3.36ns  298.01M
bmRepeatedFun                                          1.76ns  569.38M
----------------------------------------------------------------------
gun                                                    1.70ns  589.82M
----------------------------------------------------------------------
baselinevector                                         3.08us  324.87K
bmVector                                    13.64%    22.56us   44.32K
----------------------------------------------------------------------
superslow                                               1.00s  999.82m
======================================================================

Reviewed By: andrei.alexandrescu@fb.com

FB internal diff: D546209
folly/Benchmark.cpp