mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 22:47:20 +02:00
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:
parent
f43e093515
commit
5ef3bcc243
3 changed files with 130 additions and 54 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue