summaryrefslogtreecommitdiffstats
path: root/lz4demo.c
diff options
context:
space:
mode:
Diffstat (limited to 'lz4demo.c')
-rw-r--r--lz4demo.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lz4demo.c b/lz4demo.c
index 3905cfe..0d7b020 100644
--- a/lz4demo.c
+++ b/lz4demo.c
@@ -23,8 +23,8 @@
/*
Note : this is *only* a demo program, an example to show how LZ4 can be used.
It is not considered part of LZ4 compression library.
- The license of the demo program is GPL.
The license of LZ4 is BSD.
+ The license of the demo program is GPL.
*/
//****************************
@@ -340,6 +340,9 @@ int main(int argc, char** argv)
// Modify Block Size (benchmark only)
if ( argument[0] =='B' ) { int B = argument[1] - '0'; int S = 1 << (10 + 2*B); BMK_SetBlocksize(S); continue; }
+ // Modify Nb Iterations (benchmark only)
+ if ( argument[0] =='i' ) { int iters = argument[1] - '0'; BMK_SetNbIterations(iters); continue; }
+
// Test
if ( argument[0] =='t' ) { decode=1; output_filename=nulmark; continue; }
}
@@ -359,7 +362,7 @@ int main(int argc, char** argv)
// No input filename ==> Error
if(!input_filename) { badusage(); return 1; }
- if (bench) return BMK_benchFile(argv+filenamesStart, argc-filenamesStart);
+ if (bench) return BMK_benchFile(argv+filenamesStart, argc-filenamesStart, 0);
// No output filename
if (!output_filename) { badusage(); return 1; }