]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Removing assert and changing ratio cSize 1981/head
authorBimba Shrestha <bimbashrestha@fb.com>
Fri, 31 Jan 2020 19:54:14 +0000 (11:54 -0800)
committerBimba Shrestha <bimbashrestha@fb.com>
Fri, 31 Jan 2020 19:54:14 +0000 (11:54 -0800)
programs/benchzstd.c

index 7439677c7f3ecb375495d09793b16ac645a4da15..925a570b1a5e5b92465b2f75767571392a98c291 100644 (file)
@@ -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);