2016-08-30 17:04:33 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2016-present, Yann Collet, Facebook, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the BSD-style license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
*/
|
2015-01-24 00:58:16 +00:00
|
|
|
|
|
|
|
|
2016-05-31 00:29:45 +00:00
|
|
|
#ifndef BENCH_H_121279284357
|
|
|
|
#define BENCH_H_121279284357
|
2015-01-24 00:58:16 +00:00
|
|
|
|
2016-12-07 00:49:23 +00:00
|
|
|
#include <stddef.h> /* size_t */
|
2016-12-13 12:03:41 +00:00
|
|
|
#define ZSTD_STATIC_LINKING_ONLY /* ZSTD_compressionParameters */
|
|
|
|
#include "zstd.h" /* ZSTD_compressionParameters */
|
2015-01-24 00:58:16 +00:00
|
|
|
|
2016-12-28 15:11:09 +00:00
|
|
|
int BMK_benchFiles(const char** fileNamesTable, unsigned nbFiles,const char* dictFileName,
|
2016-12-13 12:03:41 +00:00
|
|
|
int cLevel, int cLevelLast, ZSTD_compressionParameters* compressionParams);
|
2015-01-24 00:58:16 +00:00
|
|
|
|
|
|
|
/* Set Parameters */
|
2017-01-20 00:59:56 +00:00
|
|
|
void BMK_setNbSeconds(unsigned nbLoops);
|
|
|
|
void BMK_setBlockSize(size_t blockSize);
|
|
|
|
void BMK_setNbThreads(unsigned nbThreads);
|
2016-03-14 11:48:51 +00:00
|
|
|
void BMK_setNotificationLevel(unsigned level);
|
2016-12-28 15:11:09 +00:00
|
|
|
void BMK_setAdditionalParam(int additionalParam);
|
|
|
|
void BMK_setDecodeOnlyMode(unsigned decodeFlag);
|
2015-01-24 00:58:16 +00:00
|
|
|
|
2016-12-07 00:49:23 +00:00
|
|
|
#endif /* BENCH_H_121279284357 */
|