diff options
author | Yann Collet <cyan@fb.com> | 2017-09-07 19:12:36 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2017-09-07 19:12:36 (GMT) |
commit | 00418f76115e3c435b4cb0e41b30fba8e8e3adee (patch) | |
tree | be170cefe4819f5d7ac93e725aa65f7742aebbda /programs/bench.c | |
parent | ee5332438b9a4c65147003334bcdbb9915930603 (diff) | |
download | lz4-00418f76115e3c435b4cb0e41b30fba8e8e3adee.zip lz4-00418f76115e3c435b4cb0e41b30fba8e8e3adee.tar.gz lz4-00418f76115e3c435b4cb0e41b30fba8e8e3adee.tar.bz2 |
bench : made decompression speed evaluation same time as compression
minor : slightly modified an example do avoid disabling a gcc warning through #pragma
Diffstat (limited to 'programs/bench.c')
-rw-r--r-- | programs/bench.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/programs/bench.c b/programs/bench.c index 77a9e3f..05ddaff 100644 --- a/programs/bench.c +++ b/programs/bench.c @@ -68,7 +68,7 @@ static int LZ4_compress_local(const char* src, char* dst, int srcSize, int dstSi #define TIMELOOP_MICROSEC 1*1000000ULL /* 1 second */ #define ACTIVEPERIOD_MICROSEC 70*1000000ULL /* 70 seconds */ #define COOLPERIOD_SEC 10 -#define DECOMP_MULT 2 /* test decompression DECOMP_MULT times longer than compression */ +#define DECOMP_MULT 1 /* test decompression DECOMP_MULT times longer than compression */ #define KB *(1 <<10) #define MB *(1 <<20) @@ -456,9 +456,9 @@ static void BMK_benchFileTable(const char** fileNamesTable, unsigned nbFiles, if (benchedSize==0) EXM_THROW(12, "not enough memory"); if ((U64)benchedSize > totalSizeToLoad) benchedSize = (size_t)totalSizeToLoad; if (benchedSize > LZ4_MAX_INPUT_SIZE) { - benchedSize = LZ4_MAX_INPUT_SIZE; + benchedSize = LZ4_MAX_INPUT_SIZE; DISPLAY("File(s) bigger than LZ4's max input size; testing %u MB only...\n", (U32)(benchedSize >> 20)); - } else { + } else { if (benchedSize < totalSizeToLoad) DISPLAY("Not enough memory; testing %u MB only...\n", (U32)(benchedSize >> 20)); } |