diff options
author | Yann Collet <Cyan4973@users.noreply.github.com> | 2016-11-04 20:54:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-04 20:54:19 (GMT) |
commit | 473acf5aa97ba28f1f079a0c37a78f12b5730695 (patch) | |
tree | bd3f5b73fabc831aafba686f6c7e055df20a5c0b /programs/bench.h | |
parent | 10c5d5eee3b1afad66b3c5c6ce7640484acbad77 (diff) | |
parent | fbede33fd7f98f62d89031b4ee29cffdc90cceb8 (diff) | |
download | lz4-473acf5aa97ba28f1f079a0c37a78f12b5730695.zip lz4-473acf5aa97ba28f1f079a0c37a78f12b5730695.tar.gz lz4-473acf5aa97ba28f1f079a0c37a78f12b5730695.tar.bz2 |
Merge pull request #252 from inikep/dev
Dev
Diffstat (limited to 'programs/bench.h')
-rw-r--r-- | programs/bench.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/programs/bench.h b/programs/bench.h index e84aaee..15def93 100644 --- a/programs/bench.h +++ b/programs/bench.h @@ -1,6 +1,6 @@ /* bench.h - Demo program to benchmark open-source compression algorithm - Copyright (C) Yann Collet 2012-2015 + Copyright (C) Yann Collet 2012-2016 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,15 +20,18 @@ - LZ4 source repository : https://github.com/lz4/lz4 - LZ4 public forum : https://groups.google.com/forum/#!forum/lz4c */ -#pragma once +#ifndef BENCH_H_125623623633 +#define BENCH_H_125623623633 +#include <stddef.h> -/* Main function */ -int BMK_benchFiles(const char** fileNamesTable, int nbFiles, int cLevel, int cLevelLast); -int BMK_benchLevel(const char** fileNamesTable, int nbFiles, int cLevel); +int BMK_benchFiles(const char** fileNamesTable, unsigned nbFiles, + int cLevel, int cLevelLast); /* Set Parameters */ -void BMK_setBlocksize(int bsize); -void BMK_setNbIterations(int nbLoops); -void BMK_setPause(void); +void BMK_SetNbSeconds(unsigned nbLoops); +void BMK_SetBlockSize(size_t blockSize); +void BMK_setAdditionalParam(int additionalParam); +void BMK_setNotificationLevel(unsigned level); +#endif /* BENCH_H_125623623633 */ |