summaryrefslogtreecommitdiffstats
path: root/bench.c
diff options
context:
space:
mode:
authoryann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd>2012-05-13 17:59:10 (GMT)
committeryann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd>2012-05-13 17:59:10 (GMT)
commit8dfb9d61593cfde85974bbe8838168481063d9e6 (patch)
tree4fee17b9ef6519fc0c5302e63f3be19c35e89717 /bench.c
parent3bc3a6afc3bd5dae94604114ed717e9b805b4ffb (diff)
downloadlz4-8dfb9d61593cfde85974bbe8838168481063d9e6.zip
lz4-8dfb9d61593cfde85974bbe8838168481063d9e6.tar.gz
lz4-8dfb9d61593cfde85974bbe8838168481063d9e6.tar.bz2
Added : LZ4 HC : Now integrated into main trunk.
LZ4_HC license moved to BSD git-svn-id: https://lz4.googlecode.com/svn/trunk@66 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
Diffstat (limited to 'bench.c')
-rw-r--r--bench.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/bench.c b/bench.c
index 1b5dd6c..b56dcb7 100644
--- a/bench.c
+++ b/bench.c
@@ -1,6 +1,7 @@
/*
bench.c - Demo program to benchmark open-source compression algorithm
Copyright (C) Yann Collet 2012
+ GPL v2 License
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
@@ -51,6 +52,9 @@
#include <sys/stat.h> // stat64
#include "lz4.h"
+#define COMPRESSOR0 LZ4_compress
+#include "lz4hc.h"
+#define COMPRESSOR1 LZ4_compressHC
#define DEFAULTCOMPRESSOR LZ4_compress
@@ -272,6 +276,9 @@ int BMK_benchFile(char** fileNamesTable, int nbFiles, int cLevel)
#ifdef COMPRESSOR0
case 0 : compP.compressionFunction = COMPRESSOR0; break;
#endif
+#ifdef COMPRESSOR1
+ case 1 : compP.compressionFunction = COMPRESSOR1; break;
+#endif
default : compP.compressionFunction = DEFAULTCOMPRESSOR;
}
compP.decompressionFunction = LZ4_uncompress;