introduced MB_UNIT

so that all benchmarking programs use the same speed scale
This commit is contained in:
Yann Collet
2018-08-23 16:03:30 -07:00
parent d39a25c5ed
commit 1f9ec13621
3 changed files with 63 additions and 44 deletions
+1 -1
View File
@@ -529,7 +529,7 @@ static size_t benchMem(U32 benchNb,
}
{ BMK_runTime_t const result = BMK_extract_runTime(outcome);
DISPLAY("%2u#%-25.25s:%7.1f MB/s (%7u) \n", benchNb, benchName, (double)srcSize / result.nanoSecPerRun * 1000000000 / 1000000, (unsigned)result.sumOfReturn );
DISPLAY("%2u#%-25.25s:%7.1f MB/s (%7u) \n", benchNb, benchName, (double)srcSize * 1000000000 / result.nanoSecPerRun / MB_UNIT, (unsigned)result.sumOfReturn );
} }
_cleanOut: