From: Bimba Shrestha Date: Fri, 31 Jan 2020 19:54:14 +0000 (-0800) Subject: Removing assert and changing ratio cSize X-Git-Tag: v1.4.5^2~104^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f33baa21c6f7509e3b1eec4157559233c9d0c7a8;p=thirdparty%2Fzstd.git Removing assert and changing ratio cSize --- diff --git a/programs/benchzstd.c b/programs/benchzstd.c index 7439677c7..925a570b1 100644 --- a/programs/benchzstd.c +++ b/programs/benchzstd.c @@ -375,7 +375,6 @@ BMK_benchMemAdvancedNoAlloc( resPtr += thisBlockSize; remaining -= thisBlockSize; if (adv->mode == BMK_decodeOnly) { - assert(nbBlocks==0); cSizes[nbBlocks] = thisBlockSize; benchResult.cSize = thisBlockSize; } @@ -483,7 +482,7 @@ BMK_benchMemAdvancedNoAlloc( { 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", marks[markNb], displayName, - (unsigned)srcSize, (unsigned)benchResult.cSize, + (unsigned)srcSize, (unsigned)cSize, ratioAccuracy, ratio, benchResult.cSpeed < (10 MB) ? 2 : 1, (double)benchResult.cSpeed / MB_UNIT, (double)benchResult.dSpeed / MB_UNIT);