OSDN Git Service

7df9a69ba0f1b60bb58176548b9f6276567692e2
[sevenzip/7-Zip.git] / chm / cmdline / commands / bench.htm
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\r
2 <HTML>\r
3 <HEAD>\r
4   <META http-equiv="Content-Type" content="text/html; charset=Windows-1252">\r
5   <TITLE>b (Benchmark) command</TITLE>\r
6   <LINK href="style.css" rel="stylesheet" type="text/css">\r
7 </HEAD>\r
8 \r
9 <BODY>\r
10 \r
11 <H1>b (Benchmark) command</H1>\r
12 \r
13 <P>Measures speed of the CPU and checks RAM for errors.</P>\r
14 \r
15 <H4>Syntax</H4>\r
16 \r
17 <PRE class="syntax">\r
18 b [number_of_iterations] [-mmt{N}] [-md{N}] [-mm={Method}]\r
19 </PRE>\r
20 \r
21 <P>There are two tests:<P>\r
22 <OL>\r
23   <LI>Compressing with LZMA method\r
24   <LI>Decompressing with LZMA method\r
25 </OL>\r
26 \r
27 <P>The benchmark shows a rating in MIPS (million instructions per second).\r
28 The rating value is calculated from the measured CPU speed and it\r
29 is normalized with results of Intel Core 2 CPU with multi-threading option \r
30 switched off. So if you have Intel Core 2 Duo, \r
31 rating values must be close to real CPU frequency.</P>\r
32 \r
33 <P>You can change the upper dictionary size to increase memory usage by -md{N} switch.\r
34 Also, you can change the number of threads by -mmt{N} switch.</P>\r
35 \r
36 <P>The <B>Dict</B> column shows dictionary size. For example, 21 means 2^21 = 2 MB.</P>\r
37 \r
38 <P>The <B>Usage</B> column shows the percentage of time the processor is working.\r
39 It's normalized for a one-thread load. For example, 180% CPU Usage for 2 threads\r
40 can mean that average CPU usage is about 90% for each thread.</P>\r
41 \r
42 <P>The <B>R / U</B> column shows the rating normalized for 100% of CPU usage.\r
43 That column shows the performance of one average CPU thread.</P>\r
44 \r
45 <P><B>Avr</B> shows averages for different dictionary sizes.</P>\r
46 <P><B>Tot</B> shows averages of the compression and decompression ratings.</P>\r
47 \r
48 <P>Compression speed and rating strongly depend on memory (RAM) latency.\r
49 \r
50 <P>Decompression speed and rating strongly depend on the integer performance of the CPU.\r
51 For example, the Intel Pentium 4 has big branch\r
52 misprediction penalty (which is an effect of its long pipeline) and pretty slow\r
53 multiply and shift operations. So, the Pentium 4 has pretty low decompressing ratings.</P>\r
54 \r
55 <P>You can run a CRC calculation benchmark by specifying -mm=crc.\r
56 That test shows the speed of CRC calculation in MB/s. The first column shows the size of the block.\r
57 The next column shows the speed of CRC calculation for one thread. The other columns are results\r
58 for multi-threaded CRC calculation.</P> \r
59 \r
60 \r
61 <H4>Examples</H4>\r
62 \r
63 <PRE class="example">\r
64 7z b\r
65 </PRE>\r
66 runs benchmarking.\r
67 \r
68 <PRE class="example">\r
69 7z b -mmt1 -md26\r
70 </PRE>\r
71 runs benchmarking with one thread and 64 MB dictionary.\r
72 \r
73 <PRE class="example">\r
74 7z b 30\r
75 </PRE>\r
76 <P>runs benchmarking with default settings for 30 iterations.</P>\r
77 \r
78 </BODY>\r
79 </HTML>\r