summaryrefslogtreecommitdiffstats
path: root/programs/bench.h
diff options
context:
space:
mode:
authorPrzemyslaw Skibinski <inikep@gmail.com>2016-11-04 13:26:12 (GMT)
committerPrzemyslaw Skibinski <inikep@gmail.com>2016-11-04 13:26:12 (GMT)
commit8b8c726a5c4d5522ab7ce691c3cc6c8a7701ab60 (patch)
treed19bd427233d03fe3ab29233b790e86f2ebc9016 /programs/bench.h
parente06fcd903909c96a72d1025a81ff8fb31ac572fb (diff)
downloadlz4-8b8c726a5c4d5522ab7ce691c3cc6c8a7701ab60.zip
lz4-8b8c726a5c4d5522ab7ce691c3cc6c8a7701ab60.tar.gz
lz4-8b8c726a5c4d5522ab7ce691c3cc6c8a7701ab60.tar.bz2
bench.c based on zstd
Diffstat (limited to 'programs/bench.h')
-rw-r--r--programs/bench.h19
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 */