Merge pull request #1981 from bimbashrestha/bug-fix

Benchzstd multiple file decompression enable
This commit is contained in:
Bimba Shrestha
2020-02-03 14:40:26 -08:00
committed by GitHub
+1 -2
View File
@@ -375,7 +375,6 @@ BMK_benchMemAdvancedNoAlloc(
resPtr += thisBlockSize; resPtr += thisBlockSize;
remaining -= thisBlockSize; remaining -= thisBlockSize;
if (adv->mode == BMK_decodeOnly) { if (adv->mode == BMK_decodeOnly) {
assert(nbBlocks==0);
cSizes[nbBlocks] = thisBlockSize; cSizes[nbBlocks] = thisBlockSize;
benchResult.cSize = thisBlockSize; benchResult.cSize = thisBlockSize;
} }
@@ -483,7 +482,7 @@ BMK_benchMemAdvancedNoAlloc(
{ int const ratioAccuracy = (ratio < 10.) ? 3 : 2; { int const ratioAccuracy = (ratio < 10.) ? 3 : 2;
DISPLAYLEVEL(2, "%2s-%-17.17s :%10u ->%10u (%5.*f),%6.*f MB/s ,%6.1f MB/s \r", DISPLAYLEVEL(2, "%2s-%-17.17s :%10u ->%10u (%5.*f),%6.*f MB/s ,%6.1f MB/s \r",
marks[markNb], displayName, marks[markNb], displayName,
(unsigned)srcSize, (unsigned)benchResult.cSize, (unsigned)srcSize, (unsigned)cSize,
ratioAccuracy, ratio, ratioAccuracy, ratio,
benchResult.cSpeed < (10 MB) ? 2 : 1, (double)benchResult.cSpeed / MB_UNIT, benchResult.cSpeed < (10 MB) ? 2 : 1, (double)benchResult.cSpeed / MB_UNIT,
(double)benchResult.dSpeed / MB_UNIT); (double)benchResult.dSpeed / MB_UNIT);