Unit Tests - benchmark2

- Fixed Timer class to use a fixed precision, that for some reason,
  does not work on Haiku.  Put a conditional compile around it for
  now - perhaps later Haiku alpha releases will change things?
- Added benchmark2.t, which enables high-resolution timers for a
  single 'list' command, with 10, 100 and 1000 task databases. Then
  it emits readily-found and parsed data for charts.
- Eliminated obsolete benchmark data for hardware I no longer own.
This commit is contained in:
Paul Beckingham 2009-12-26 19:44:52 -05:00
parent f43e093515
commit 5ef3bcc243
3 changed files with 130 additions and 54 deletions

View file

@ -52,7 +52,12 @@ Timer::~Timer ()
<< mDescription
<< " "
<< std::setprecision (6)
// << std::fixed
#ifndef HAIKU
// Haiku fails on this - don't know why.
<< std::fixed
#endif
<< ((end.tv_sec - mStart.tv_sec) + ((end.tv_usec - mStart.tv_usec )
/ 1000000.0))
<< " sec";