You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: programs/zstd.1.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -343,7 +343,7 @@ If the value of `ZSTD_CLEVEL` is not a valid integer, it will be ignored with a
343
343
344
344
`ZSTD_NBTHREADS` can be used to set the number of threads `zstd` will attempt to use during compression.
345
345
If the value of `ZSTD_NBTHREADS` is not a valid unsigned integer, it will be ignored with a warning message.
346
-
`ZSTD_NBTHREADS` has a default value of (`min(4, nbCores/4`), and is capped at ZSTDMT_NBWORKERS_MAX==200.
346
+
`ZSTD_NBTHREADS` has a default value of `max(1, min(4, nbCores/4))`, and is capped at ZSTDMT_NBWORKERS_MAX==200.
347
347
`zstd` must be compiled with multithread support for this variable to have any effect.
348
348
349
349
They can both be overridden by corresponding command line arguments:
@@ -664,9 +664,12 @@ BENCHMARK
664
664
The `zstd` CLI provides a benchmarking mode that can be used to easily find suitable compression parameters, or alternatively to benchmark a computer's performance.
665
665
`zstd -b [FILE(s)]` will benchmark `zstd` for both compression and decompression using default compression level.
666
666
Note that results are very dependent on the content being compressed.
667
+
667
668
It's possible to pass multiple files to the benchmark, and even a directory with `-r DIRECTORY`.
668
669
When no `FILE` is provided, the benchmark will use a procedurally generated `lorem ipsum` text.
669
670
671
+
Benchmarking will employ `max(1, min(4, nbCores/4))` worker threads by default in order to match the behavior of the normal CLI I/O.
0 commit comments