| /freebsd-12.1/sys/contrib/zstd/tests/ |
| H A D | paramgrill.c | 335 int cLevel; in BMK_printWinners2() local 340 for (cLevel=0; cLevel <= ZSTD_maxCLevel(); cLevel++) in BMK_printWinners2() 341 BMK_printWinner(f, cLevel, winners[cLevel].result, winners[cLevel].params, srcSize); in BMK_printWinners2() 359 int cLevel; in BMK_seed() local 363 for (cLevel = 1; cLevel <= ZSTD_maxCLevel(); cLevel++) { in BMK_seed() 375 …if ((double)testResult.cSize <= ((double)winners[cLevel].result.cSize * (1. + (0.02 / cLevel))) ) { in BMK_seed() 392 … double O_CSpeed_note = O_ratioNote * ( 30 + 10*cLevel) + log(winners[cLevel].result.cSpeed); in BMK_seed() 395 … double O_DSpeed_note = O_ratioNote * ( 20 + 2*cLevel) + log(winners[cLevel].result.dSpeed); in BMK_seed() 418 O_ratio, winners[cLevel].result.cSpeed / 1000000., cLevel); in BMK_seed() 426 O_ratio, winners[cLevel].result.dSpeed / 1000000., cLevel); in BMK_seed() [all …]
|
| H A D | roundTripCrash.c | 70 int const cLevel = h32 % maxClevel; in roundTripTest() local 71 … const cSize = ZSTD_compress(compressedBuff, compressedBuffCapacity, srcBuff, srcBuffSize, cLevel); in roundTripTest() 93 int const cLevel = h32 % maxClevel; in cctxParamRoundTripTest() local 96 CHECK_Z( ZSTD_CCtxParam_setParameter(cctxParams, ZSTD_p_compressionLevel, cLevel) ); in cctxParamRoundTripTest()
|
| H A D | playTests.sh | 10 cLevel="$3" 13 cLevel="$2" 19 dLevel="$cLevel" 23 $ECHO "roundTripTest: ./datagen $1 $proba | $ZSTD -v$cLevel | $ZSTD -d$dLevel" 25 ./datagen $1 $proba | $ZSTD --ultra -v$cLevel | $ZSTD -d$dLevel | $MD5SUM > tmp2
|
| H A D | fuzzer.c | 1443 int const cLevel = ((FUZ_rand(&lseed) & 15) == 3) ? in fuzzerTests() local 1446 DISPLAYLEVEL(5, "fuzzer t%u: Simple compression test (level %i) \n", testNb, cLevel); in fuzzerTests() 1447 cSize = ZSTD_compressCCtx(ctx, cBuffer, cBufferSize, sampleBuffer, sampleSize, cLevel); in fuzzerTests() 1456 …onst errorCode = ZSTD_compressCCtx(ctx, dstBuffer, tooSmallSize, sampleBuffer, sampleSize, cLevel); in fuzzerTests() 1549 int const cLevel = (FUZ_rand(&lseed) % in fuzzerTests() local 1560 testNb, (U32)maxTestSize, cLevel, (U32)dictSize); in fuzzerTests() 1563 CHECK_Z ( ZSTD_compressBegin_usingDict(refCtx, dict, dictSize, cLevel) ); in fuzzerTests() 1565 …ZSTD_compressionParameters const cPar = ZSTD_getCParams(cLevel, ZSTD_CONTENTSIZE_UNKNOWN, dictSize… in fuzzerTests()
|
| H A D | zbufftest.c | 346 U32 const cLevel = (FUZ_rand(&lseed) % (ZSTD_maxCLevel() - (testLog/3))) + 1; in fuzzerTests() local 353 { ZSTD_parameters params = ZSTD_getParams(cLevel, 0, dictSize); in fuzzerTests()
|
| H A D | zstreamtest.c | 1079 U32 const cLevel = MIN(cLevelCandidate, cLevelMax); in fuzzerTests() local 1088 ZSTD_parameters params = ZSTD_getParams(cLevel, pledgedSrcSize, dictSize); in fuzzerTests() 1325 int const cLevel = MIN(cLevelMin, cLevelMax); in fuzzerTests_MT() local 1339 ZSTD_parameters params = ZSTD_getParams(cLevel, pledgedSrcSize, dictSize); in fuzzerTests_MT() 1618 U32 const cLevel = MIN(cLevelCandidate, cLevelMax); in fuzzerTests_newAPI() local 1619 DISPLAYLEVEL(5, "t%u: base cLevel : %u \n", testNb, cLevel); in fuzzerTests_newAPI() 1630 … ZSTD_compressionParameters cParams = ZSTD_getCParams(cLevel, pledgedSrcSize, dictSize); in fuzzerTests_newAPI()
|
| /freebsd-12.1/sys/contrib/zstd/programs/ |
| H A D | bench.c | 193 const char* displayName, int cLevel, in BMK_benchMem() argument 306 ZSTD_CCtx_setParameter(ctx, ZSTD_p_compressionLevel, cLevel); in BMK_benchMem() 486 DISPLAYLEVEL(2, "%2i#\n", cLevel); in BMK_benchMem() 537 for (l=cLevel; l <= cLevelLast; l++) { in BMK_benchCLevel() 586 int const cLevel, int const cLevelLast, in BMK_benchFileTable() argument 629 fileNamesTable[fileNb], cLevel, cLevelLast, in BMK_benchFileTable() 639 displayName, cLevel, cLevelLast, in BMK_benchFileTable() 675 int cLevel, int cLevelLast, in BMK_benchFiles() argument 680 if (cLevel > ZSTD_maxCLevel()) cLevel = ZSTD_maxCLevel(); in BMK_benchFiles() 682 if (cLevelLast < cLevel) cLevelLast = cLevel; in BMK_benchFiles() [all …]
|
| H A D | zstdcli.c | 390 int cLevel = ZSTDCLI_CLEVEL_DEFAULT; in main() local 418 (void)ultra; (void)cLevel; (void)ldmFlag; /* not used when ZSTD_NOCOMPRESS set */ in main() 553 if (fastLevel) cLevel = - (int)fastLevel; in main() 558 cLevel = -1; /* default for --fast */ in main() 574 dictCLevel = cLevel = readU32FromChar(&argument); in main() 801 … BMK_benchFiles(filenameTable, filenameIdx, dictFileName, cLevel, cLevelLast, &compressionParams); in main() 853 if (cLevel > maxCLevel) { in main() 855 cLevel = maxCLevel; in main() 881 …sult = FIO_compressFilename(outFileName, filenameTable[0], dictFileName, cLevel, &compressionParam… in main() 883 …Filenames(filenameTable, filenameIdx, outFileName, suffix, dictFileName, cLevel, &compressionParam… in main()
|
| H A D | bench.h | 20 int cLevel, int cLevelLast, const ZSTD_compressionParameters* compressionParams);
|
| H A D | fileio.c | 419 static cRess_t FIO_createCResources(const char* dictFileName, int cLevel, in FIO_createCResources() argument 446 CHECK( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_p_compressionLevel, (unsigned)cLevel) ); in FIO_createCResources()
|
| /freebsd-12.1/sys/contrib/zstd/zlibWrapper/examples/ |
| H A D | zwrapbench.c | 551 DISPLAYLEVEL(2, "%2i#\n", cLevel); in BMK_benchMem() 598 if (cLevelLast < cLevel) cLevelLast = cLevel; in BMK_benchCLevel() 601 for (l=cLevel; l <= cLevelLast; l++) { in BMK_benchCLevel() 609 for (l=cLevel; l <= cLevelLast; l++) { in BMK_benchCLevel() 617 for (l=cLevel; l <= cLevelLast; l++) { in BMK_benchCLevel() 625 for (l=cLevel; l <= cLevelLast; l++) { in BMK_benchCLevel() 637 for (l=cLevel; l <= cLevelLast; l++) { in BMK_benchCLevel() 645 for (l=cLevel; l <= cLevelLast; l++) { in BMK_benchCLevel() 653 for (l=cLevel; l <= cLevelLast; l++) { in BMK_benchCLevel() 661 for (l=cLevel; l <= cLevelLast; l++) { in BMK_benchCLevel() [all …]
|
| /freebsd-12.1/sys/contrib/zstd/tests/fuzz/ |
| H A D | block_round_trip.c | 37 int const cLevel = FUZZ_rand(&seed) % kMaxClevel; in roundTripTest() local 38 ZSTD_parameters const params = ZSTD_getParams(cLevel, srcSize, 0); in roundTripTest()
|
| H A D | simple_round_trip.c | 50 int const cLevel = FUZZ_rand(&seed) % kMaxClevel; in roundTripTest() local 52 cctx, compressed, compressedCapacity, src, srcSize, cLevel); in roundTripTest()
|
| /freebsd-12.1/sys/contrib/zstd/contrib/seekable_format/examples/ |
| H A D | seekable_compression.c | 63 static void compressFile_orDie(const char* fname, const char* outName, int cLevel, unsigned frameSi… in compressFile_orDie() argument 74 size_t const initResult = ZSTD_seekable_initCStream(cstream, cLevel, 1, frameSize); in compressFile_orDie()
|
| H A D | parallel_compression.c | 123 static void compressFile_orDie(const char* fname, const char* outName, int cLevel, unsigned frameSi… in compressFile_orDie() argument 154 jobs[i].compressionLevel = cLevel; in compressFile_orDie()
|
| /freebsd-12.1/sys/contrib/zstd/lib/compress/ |
| H A D | zstd_compress.c | 351 int cLevel = (int)value; /* cast expected to restore negative sign */ in ZSTD_CCtxParam_setParameter() local 352 if (cLevel > ZSTD_maxCLevel()) cLevel = ZSTD_maxCLevel(); in ZSTD_CCtxParam_setParameter() 353 if (cLevel) { /* 0 : does not change current level */ in ZSTD_CCtxParam_setParameter() 354 … CCtxParams->disableLiteralCompression = (cLevel<0); /* negative levels disable huffman */ in ZSTD_CCtxParam_setParameter() 355 CCtxParams->compressionLevel = cLevel; in ZSTD_CCtxParam_setParameter()
|