summaryrefslogtreecommitdiffstats
path: root/programs/lz4cli.c
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2018-03-20 00:19:25 (GMT)
committerYann Collet <cyan@fb.com>2018-03-20 00:19:25 (GMT)
commit1faa7e2698e73864aa20729caba8071148af5b4c (patch)
tree422e706a106fd87eafd12444f2059dc24aef2439 /programs/lz4cli.c
parent5b67c7d1851e3530b1a45628b82fb1e06640e410 (diff)
downloadlz4-1faa7e2698e73864aa20729caba8071148af5b4c.zip
lz4-1faa7e2698e73864aa20729caba8071148af5b4c.tar.gz
lz4-1faa7e2698e73864aa20729caba8071148af5b4c.tar.bz2
bench: introduced hidden command -S
to benchmark multiple files with separate results
Diffstat (limited to 'programs/lz4cli.c')
-rw-r--r--programs/lz4cli.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/programs/lz4cli.c b/programs/lz4cli.c
index 362ba49..42392eb 100644
--- a/programs/lz4cli.c
+++ b/programs/lz4cli.c
@@ -458,11 +458,11 @@ int main(int argc, const char** argv)
if (B < 4) badusage(exeName);
if (B <= 7) {
blockSize = LZ4IO_setBlockSizeID(B);
- BMK_SetBlockSize(blockSize);
+ BMK_setBlockSize(blockSize);
DISPLAYLEVEL(2, "using blocks of size %u KB \n", (U32)(blockSize>>10));
} else {
if (B < 32) badusage(exeName);
- BMK_SetBlockSize(B);
+ BMK_setBlockSize(B);
if (B >= 1024) {
DISPLAYLEVEL(2, "bench: using blocks of size %u KB \n", (U32)(B>>10));
} else {
@@ -480,6 +480,10 @@ int main(int argc, const char** argv)
case 'b': mode = om_bench; multiple_inputs=1;
break;
+ /* hidden command : benchmark files, but do not fuse result */
+ case 'S': BMK_setBenchSeparately(1);
+ break;
+
#ifdef UTIL_HAS_CREATEFILELIST
/* recursive */
case 'r': recursive=1;
@@ -496,7 +500,7 @@ int main(int argc, const char** argv)
iters = readU32FromChar(&argument);
argument--;
BMK_setNotificationLevel(displayLevel);
- BMK_SetNbSeconds(iters); /* notification if displayLevel >= 3 */
+ BMK_setNbSeconds(iters); /* notification if displayLevel >= 3 */
}
break;