Merge branch 'benchDecode' into longOffsetMode
This commit is contained in:
commit
a70f7e10fa
@ -260,7 +260,11 @@ static int BMK_benchMem(const void* srcBuffer, size_t srcSize,
|
|||||||
} } }
|
} } }
|
||||||
|
|
||||||
/* warmimg up memory */
|
/* warmimg up memory */
|
||||||
RDG_genBuffer(compressedBuffer, maxCompressedSize, 0.10, 0.50, 1);
|
if (g_decodeOnly) {
|
||||||
|
memcpy(compressedBuffer, srcBuffer, loadedCompressedSize);
|
||||||
|
} else {
|
||||||
|
RDG_genBuffer(compressedBuffer, maxCompressedSize, 0.10, 0.50, 1);
|
||||||
|
}
|
||||||
|
|
||||||
/* Bench */
|
/* Bench */
|
||||||
{ U64 fastestC = (U64)(-1LL), fastestD = (U64)(-1LL);
|
{ U64 fastestC = (U64)(-1LL), fastestD = (U64)(-1LL);
|
||||||
@ -373,9 +377,7 @@ static int BMK_benchMem(const void* srcBuffer, size_t srcSize,
|
|||||||
ratioAccuracy, ratio,
|
ratioAccuracy, ratio,
|
||||||
cSpeedAccuracy, compressionSpeed );
|
cSpeedAccuracy, compressionSpeed );
|
||||||
}
|
}
|
||||||
} else { /* g_decodeOnly */
|
} /* if (!g_decodeOnly) */
|
||||||
memcpy(compressedBuffer, srcBuffer, loadedCompressedSize);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if 0 /* disable decompression test */
|
#if 0 /* disable decompression test */
|
||||||
dCompleted=1;
|
dCompleted=1;
|
||||||
|
@ -573,7 +573,8 @@ int main(int argCount, const char* argv[])
|
|||||||
/* Decoding */
|
/* Decoding */
|
||||||
case 'd':
|
case 'd':
|
||||||
#ifndef ZSTD_NOBENCH
|
#ifndef ZSTD_NOBENCH
|
||||||
if (operation==zom_bench) { BMK_setDecodeOnlyMode(1); argument++; break; } /* benchmark decode (hidden option) */
|
BMK_setDecodeOnlyMode(1);
|
||||||
|
if (operation==zom_bench) { argument++; break; } /* benchmark decode (hidden option) */
|
||||||
#endif
|
#endif
|
||||||
operation=zom_decompress; argument++; break;
|
operation=zom_decompress; argument++; break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user