1 /*
2  * Copyright (c) 2016-present, Yann Collet, Facebook, Inc.
3  * All rights reserved.
4  *
5  * This source code is licensed under both the BSD-style license (found in the
6  * LICENSE file in the root directory of this source tree) and the GPLv2 (found
7  * in the COPYING file in the root directory of this source tree).
8  * You may select, at your option, one of the above-listed licenses.
9  */
10 
11 
12 #ifndef BENCH_H_121279284357
13 #define BENCH_H_121279284357
14 
15 #include <stddef.h>   /* size_t */
16 #define ZSTD_STATIC_LINKING_ONLY   /* ZSTD_compressionParameters */
17 #include "zstd.h"     /* ZSTD_compressionParameters */
18 
19 int BMK_benchFiles(const char** fileNamesTable, unsigned nbFiles, const char* dictFileName,
20                    int cLevel, int cLevelLast, const ZSTD_compressionParameters* compressionParams);
21 
22 /* Set Parameters */
23 void BMK_setNbSeconds(unsigned nbLoops);
24 void BMK_setBlockSize(size_t blockSize);
25 void BMK_setNbThreads(unsigned nbThreads);
26 void BMK_setRealTime(unsigned priority);
27 void BMK_setNotificationLevel(unsigned level);
28 void BMK_setSeparateFiles(unsigned separate);
29 void BMK_setAdditionalParam(int additionalParam);
30 void BMK_setDecodeOnlyMode(unsigned decodeFlag);
31 void BMK_setLdmFlag(unsigned ldmFlag);
32 void BMK_setLdmMinMatch(unsigned ldmMinMatch);
33 void BMK_setLdmHashLog(unsigned ldmHashLog);
34 void BMK_setLdmBucketSizeLog(unsigned ldmBucketSizeLog);
35 void BMK_setLdmHashEveryLog(unsigned ldmHashEveryLog);
36 
37 #endif   /* BENCH_H_121279284357 */
38