]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
update documentation to specify that Dictionary can be used for benchmark 4146/head
authorYann Collet <cyan@fb.com>
Wed, 25 Sep 2024 23:56:01 +0000 (16:56 -0700)
committerYann Collet <cyan@fb.com>
Wed, 25 Sep 2024 23:56:01 +0000 (16:56 -0700)
fix #4139

programs/zstd.1.md
programs/zstdcli.c

index 5188be6a51508b5c7fa4c13622b1809a0199b184..d0473fa470a0a6efbd4eed2985a4b05723732048 100644 (file)
@@ -674,6 +674,10 @@ Note that the results are highly dependent on the content being compressed.
     minimum evaluation time, in seconds (default: 3s), benchmark mode only
 * `-B#`, `--block-size=#`:
     cut file(s) into independent chunks of size # (default: no chunking)
+* `-S`:
+    output one benchmark result per input file (default: consolidated result)
+* `-D dictionary`
+    benchmark using dictionary
 * `--priority=rt`:
     set process priority to real-time (Windows)
 
index 9dd6b051a7b70560e0b605c8f588df989b17ca5a..d8e908d856cf8463d39f782daba6cbe79dae310e 100644 (file)
@@ -32,7 +32,6 @@
 #include <stdlib.h>   /* getenv */
 #include <string.h>   /* strcmp, strlen */
 #include <stdio.h>    /* fprintf(), stdin, stdout, stderr */
-#include <errno.h>    /* errno */
 #include <assert.h>   /* assert */
 
 #include "fileio.h"   /* stdinmark, stdoutmark, ZSTD_EXTENSION */
@@ -311,6 +310,7 @@ static void usageAdvanced(const char* programName)
     DISPLAYOUT("  -i#                           Set the minimum evaluation to time # seconds. [Default: 3]\n");
     DISPLAYOUT("  -B#                           Cut file into independent chunks of size #. [Default: No chunking]\n");
     DISPLAYOUT("  -S                            Output one benchmark result per input file. [Default: Consolidated result]\n");
+    DISPLAYOUT("  -D dictionary                 Benchmark using dictionary \n");
     DISPLAYOUT("  --priority=rt                 Set process priority to real-time.\n");
 #endif