- haven't noticed before that test/visual/run already had --log,
and test/unit/run received that option recently
- pass --log=none by default in benchmark/run script
- with this option test_runner() will be called repeatedly (doing the
given number of --iterations each time) until SECONDS have elapsed
- added output column showing average time per iteration, should help
when comparing different runs
- shrinked the # of iterations column using k/M suffixes
snprintf is a better tool for this task, anyway, but here's what was
wrong with the stream formatting:
s << name << ":" << std::setw(45 - (int)s.tellp())
cannot be used to align columns, tellp() may return any of:
0
name.length()
name.length() + strlen(":")
because the compiler is allowed to reorder the evaluation of
sub-expressions as it likes -- it may evaluate s.tellp() before
evaluating (s << name) or in-between (s << name) and (s << ":")
try with gcc-4.8