2017-08-18 16:52:05 -07:00
|
|
|
/*
|
2016-08-30 10:04:33 -07:00
|
|
|
* Copyright (c) 2016-present, Yann Collet, Facebook, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
2017-08-18 16:52:05 -07:00
|
|
|
* This source code is licensed under both the BSD-style license (found in the
|
|
|
|
* LICENSE file in the root directory of this source tree) and the GPLv2 (found
|
|
|
|
* in the COPYING file in the root directory of this source tree).
|
2017-09-08 00:09:23 -07:00
|
|
|
* You may select, at your option, one of the above-listed licenses.
|
2016-08-30 10:04:33 -07:00
|
|
|
*/
|
2015-01-23 16:58:16 -08:00
|
|
|
|
|
|
|
|
2016-05-30 17:29:45 -07:00
|
|
|
#ifndef BENCH_H_121279284357
|
|
|
|
#define BENCH_H_121279284357
|
2015-01-23 16:58:16 -08:00
|
|
|
|
2016-12-06 16:49:23 -08:00
|
|
|
#include <stddef.h> /* size_t */
|
2016-12-13 04:03:41 -08:00
|
|
|
#define ZSTD_STATIC_LINKING_ONLY /* ZSTD_compressionParameters */
|
|
|
|
#include "zstd.h" /* ZSTD_compressionParameters */
|
2015-01-23 16:58:16 -08:00
|
|
|
|
2017-11-17 01:21:40 -08:00
|
|
|
int BMK_benchFiles(const char** fileNamesTable, unsigned nbFiles, const char* dictFileName,
|
|
|
|
int cLevel, int cLevelLast, const ZSTD_compressionParameters* compressionParams);
|
2015-01-23 16:58:16 -08:00
|
|
|
|
|
|
|
/* Set Parameters */
|
2017-01-19 16:59:56 -08:00
|
|
|
void BMK_setNbSeconds(unsigned nbLoops);
|
|
|
|
void BMK_setBlockSize(size_t blockSize);
|
2018-02-01 19:29:30 -08:00
|
|
|
void BMK_setNbWorkers(unsigned nbWorkers);
|
2017-11-17 00:02:37 -08:00
|
|
|
void BMK_setRealTime(unsigned priority);
|
2016-03-14 04:48:51 -07:00
|
|
|
void BMK_setNotificationLevel(unsigned level);
|
2017-11-17 00:22:55 -08:00
|
|
|
void BMK_setSeparateFiles(unsigned separate);
|
2016-12-28 07:11:09 -08:00
|
|
|
void BMK_setAdditionalParam(int additionalParam);
|
|
|
|
void BMK_setDecodeOnlyMode(unsigned decodeFlag);
|
2017-07-28 15:51:33 -07:00
|
|
|
void BMK_setLdmFlag(unsigned ldmFlag);
|
2017-09-01 14:52:51 -07:00
|
|
|
void BMK_setLdmMinMatch(unsigned ldmMinMatch);
|
|
|
|
void BMK_setLdmHashLog(unsigned ldmHashLog);
|
2017-09-02 21:10:36 -07:00
|
|
|
void BMK_setLdmBucketSizeLog(unsigned ldmBucketSizeLog);
|
2017-09-01 14:52:51 -07:00
|
|
|
void BMK_setLdmHashEveryLog(unsigned ldmHashEveryLog);
|
2015-01-23 16:58:16 -08:00
|
|
|
|
2016-12-06 16:49:23 -08:00
|
|
|
#endif /* BENCH_H_121279284357 */
|