Home
last modified time | relevance | path

Searched refs:cLevel (Results 1 – 9 of 9) sorted by relevance

/freebsd/sys/contrib/zstd/examples/
H A Dstreaming_compression.c18 static void compressFile_orDie(const char* fname, const char* outName, int cLevel, in compressFile_orDie() argument
22 fname, cLevel, nbThreads); in compressFile_orDie()
43 CHECK_ZSTD( ZSTD_CCtx_setParameter(cctx, ZSTD_c_compressionLevel, cLevel) ); in compressFile_orDie()
119 int cLevel = 1; in main() local
123 cLevel = atoi (argv[2]); in main()
124 CHECK(cLevel != 0, "can't parse LEVEL!"); in main()
135 compressFile_orDie(inFilename, outFilename, cLevel, nbThreads); in main()
H A Ddictionary_compression.c18 static ZSTD_CDict* createCDict_orDie(const char* dictFileName, int cLevel) in createCDict_orDie() argument
23 ZSTD_CDict* const cdict = ZSTD_createCDict(dictBuffer, dictSize, cLevel); in createCDict_orDie()
73 int const cLevel = 3; in main() local
84 ZSTD_CDict* const dictPtr = createCDict_orDie(dictName, cLevel); in main()
H A Dmultiple_streaming_compression.c31 static resources createResources_orDie(int cLevel) in createResources_orDie() argument
45 CHECK_ZSTD( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_c_compressionLevel, cLevel) ); in createResources_orDie()
106 int const cLevel = 7; in main() local
107 resources const ress = createResources_orDie(cLevel); in main()
H A Dstreaming_compression_thread_pool.c23 int cLevel; member
34 …arting compression of %s with level %d, using %d threads\n", args->fname, args->cLevel, nbThreads); in compressFile_orDie()
59 CHECK_ZSTD( ZSTD_CCtx_setParameter(cctx, ZSTD_c_compressionLevel, args->cLevel) ); in compressFile_orDie()
164 args[i].cLevel = level; in main()
/freebsd/sys/contrib/zstd/zlibWrapper/examples/
H A Dzwrapbench.c152 const char* displayName, int cLevel, in BMK_benchMem() argument
236 ZSTD_parameters const zparams = ZSTD_getParams(cLevel, avgSize, dictBufferSize); in BMK_benchMem()
253 … blockTable[blockNb].srcPtr,blockTable[blockNb].srcSize, cLevel); in BMK_benchMem()
262 ZSTD_parameters const zparams = ZSTD_getParams(cLevel, avgSize, dictBufferSize); in BMK_benchMem()
314 ret = deflateInit(&def, cLevel); in BMK_benchMem()
358 ret = deflateInit(&def, cLevel); in BMK_benchMem()
564 …DISPLAY("-%-3i%11i (%5.3f) %6.2f MB/s %6.1f MB/s %s (param=%d)\n", cLevel, (int)cSize, ratio, cSp… in BMK_benchMem()
566 …DISPLAY("-%-3i%11i (%5.3f) %6.2f MB/s %6.1f MB/s %s\n", cLevel, (int)cSize, ratio, cSpeed, dSpeed… in BMK_benchMem()
568 DISPLAYLEVEL(2, "%2i#\n", cLevel); in BMK_benchMem()
600 const char* displayName, int cLevel, int cLevelLast, in BMK_benchCLevel() argument
[all …]
/freebsd/sys/contrib/zstd/programs/
H A Dbenchzstd.h97 int cLevel, const ZSTD_compressionParameters* compressionParams,
132 int cLevel, const ZSTD_compressionParameters* compressionParams,
153 int cLevel, double compressibility,
188 int cLevel, const ZSTD_compressionParameters* comprParams,
202 int cLevel, const ZSTD_compressionParameters* comprParams,
H A Dbenchzstd.c167 int cLevel, in BMK_initCCtx() argument
177 CHECK_Z(ZSTD_CCtx_setParameter(ctx, ZSTD_c_compressionLevel, cLevel)); in BMK_initCCtx()
206 int cLevel; member
213 … BMK_initCCtx(ag->cctx, ag->dictBuffer, ag->dictBufferSize, ag->cLevel, ag->comprParams, ag->adv); in local_initCCtx()
311 const int cLevel, in BMK_benchMemAdvancedNoAlloc() argument
416 cctxprep.cLevel = cLevel; in BMK_benchMemAdvancedNoAlloc()
544 …OUTPUT("-%-3i%11i (%5.3f) %6.2f MB/s %6.1f MB/s %s (param=%d)\n", cLevel, (int)cSize, ratio, cSpe… in BMK_benchMemAdvancedNoAlloc()
546 …OUTPUT("-%-3i%11i (%5.3f) %6.2f MB/s %6.1f MB/s %s\n", cLevel, (int)cSize, ratio, cSpeed, dSpeed,… in BMK_benchMemAdvancedNoAlloc()
550 OUTPUTLEVEL(2, "%2i#\n", cLevel); in BMK_benchMemAdvancedNoAlloc()
560 int cLevel, const ZSTD_compressionParameters* comprParams, in BMK_benchMemAdvanced() argument
[all …]
H A Dzstdcli.c657 static void printDefaultCParams(const char* filename, const char* dictFileName, int cLevel) { in printDefaultCParams() argument
660 const ZSTD_compressionParameters cParams = ZSTD_getCParams(cLevel, fileSize, dictSize); in printDefaultCParams()
673 static void printActualCParams(const char* filename, const char* dictFileName, int cLevel, const ZS… in printActualCParams() argument
676 ZSTD_compressionParameters actualCParams = ZSTD_getCParams(cLevel, fileSize, dictSize); in printActualCParams()
816 int cLevel = init_cLevel(); in main() local
1037 dictCLevel = cLevel = -(int)fastLevel; in main()
1047 cLevel = -1; /* default for --fast */ in main()
1069 dictCLevel = cLevel = (int)readU32FromChar(&argument); in main()
1290 if (cLevel > ZSTD_maxCLevel()) cLevel = ZSTD_maxCLevel(); in main()
1292 if (cLevelLast < cLevel) cLevelLast = cLevel; in main()
[all …]
H A Dfileio.c960 int cLevel) in FIO_adjustParamsForPatchFromMode() argument
963 …ZSTD_compressionParameters const cParams = ZSTD_getCParams(cLevel, (size_t)maxSrcFileSize, (size_t… in FIO_adjustParamsForPatchFromMode()
984 int cLevel, ZSTD_compressionParameters comprParams) { in FIO_createCResources() argument
1001 …prefs, &comprParams, UTIL_getFileSize(dictFileName), ssSize > 0 ? ssSize : maxSrcFileSize, cLevel); in FIO_createCResources()
1020 CHECK( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_c_compressionLevel, cLevel) ); in FIO_createCResources()