b (Benchmark) command
Measures speed of the CPU and checks RAM for errors.
Syntax
b [number_of_iterations] [-mmt{N}] [-md{N}] [-mm={Method}]
There are two tests:
- Compressing with LZMA method
- Decompressing with LZMA method
The benchmark shows a rating in MIPS (million instructions per second). The rating value is calculated from the measured CPU speed and it is normalized with results of Intel Core 2 CPU with multi-threading option switched off. So if you have Intel Core 2 Duo, rating values must be close to real CPU frequency.
You can change the upper dictionary size to increase memory usage by -md{N} switch. Also, you can change the number of threads by -mmt{N} switch.
The Dict column shows dictionary size. For example, 21 means 2^21 = 2 MB.
The Usage column shows the percentage of time the processor is working. It's normalized for a one-thread load. For example, 180% CPU Usage for 2 threads can mean that average CPU usage is about 90% for each thread.
The R / U column shows the rating normalized for 100% of CPU usage. That column shows the performance of one average CPU thread.
Avr shows averages for different dictionary sizes.
Tot shows averages of the compression and decompression ratings.
Compression speed and rating strongly depend on memory (RAM) latency.
Decompression speed and rating strongly depend on the integer performance of the CPU. For example, the Intel Pentium 4 has big branch misprediction penalty (which is an effect of its long pipeline) and pretty slow multiply and shift operations. So, the Pentium 4 has pretty low decompressing ratings.
You can run a CRC calculation benchmark by specifying -mm=crc. That test shows the speed of CRC calculation in MB/s. The first column shows the size of the block. The next column shows the speed of CRC calculation for one thread. The other columns are results for multi-threaded CRC calculation.
With -mm=* switch you can run a complex benchmark. It tests hash calculation methods, compression and encryption codecs of 7-Zip. Note that the tests of LZMA have big weight in "total" results. And the results are normilized with AMD K8 cpu in complex benchmark.
Examples
7z bruns benchmarking.
7z b -mmt1 -md26runs benchmarking with one thread and 64 MB dictionary.
7z b 30
runs benchmarking with default settings for 30 iterations.
7z b -mm=*
runs complex 7-Zip benchmark.
Other documents on this site:
- 7-Zip Manual /lzma.txt
- 7-Zip Manual /src-history.txt
- 7-Zip Manual /readme.txt
- 7-Zip Manual /7zC.txt
- 7-Zip Manual /License.txt
- 7-Zip Manual /copying.txt
- 7-Zip Manual /Methods.txt
- 7-Zip Manual /unRarLicense.txt
- 7-Zip Manual /7zFormat.txt
- 7-Zip Start Page
- Command Line Syntax
- Command Line Version User's Guide
- Exit Codes from 7-Zip
- -ax (Exclude archive filenames) switch
- -y (assume Yes on all queries) switch
- -sa (set Archive name mode) switch
- -slp (Set Large Pages mode) switch
- -p (set Password) switch
- -stl (Set archive timestamp from the most recently modified file) switch
- -sfx (Create SFX archive) switch
- -ssc (Set Sensitive Case mode) switch
- -scrc (Set hash function) switch
- -ai (Include archive filenames) switch
- -o (set Output directory) switch
- -si (read data from stdin) switch
- -r (Recurse subdirectories) switch
- -ssw (Compress files open for writing) switch
- -w (set Working directory) switch
- -so (write data to stdout) switch
- -i (Include filenames) switch
- -t (set Type of archive) switch
- -stx (Exclude archive type) switch
- -spf (Use fully qualified file paths) switch
- Command Line Switches
- -scc (Set charset for console input/output) switch
- -sdel (Delete files after including to archive) switch
- -m (Set compression Method) switch
- -slt (Show technical information) switch
- -u (Update options) switch
- -ao (Overwrite mode) switch
- -x (Exclude filenames) switch
- -v (Create Volumes) switch
- -scs (Set charset for list files) switch
- -an (Disable parsing of archive_name) switch
- -bb (Set output log level) switch
- -spf (Use fully qualified file paths) switch
- -sns (Store NTFS alternate Streams) switch
- -- (Stop switches parsing) switch
- -sni (Store NT security information) switch
- d (Delete) command
- x (Extract with full paths) command
- a (Add) command
- b (Benchmark) command
- e (Extract) command
- rn (Rename) command
- Command Line Commands
- h (Hash) command
- u (Update) command
- t (Test integrity of archive) command
- l (List contents of archive) command
- Menu Items and Shortcut Keys
- 7-Zip File Manager
- Options Dialog Box
- About Dialog Box
- Benchmark
- Plugins
- Add to Archive Dialog Box
- Extract Dialog Box
- 7-Zip Plugin
- Thanks
- License for use and distribution
- General Information
- Frequently Asked Questions (FAQ)
- Supported formats
- Performance
- 7z Format