Edit page memo/benchmark/compression
[wiki.git] / memo / benchmark / compression
1 == A crude CPU benchmark using lossless compression algorithms ==
2
3 === How to test ===
4
5 {{{
6 time lzop  >/dev/null <testfile
7 time gzip  >/dev/null <testfile
8 time bzip2 >/dev/null <testfile
9 time xz    >/dev/null <testfile
10 }}}
11
12 "testfile" is a 175MB avi (southpark_12x12_about_last_night.avi). It's not really compressible, which helps level the ground.
13
14 === Results ===
15
16 || **Hostname** || **System**     || ** CPU Brand**              || **CPU** ||**Clock**||**Arch**||
17 || gdesk        || Lenovo X220    || Intel(R) Xeon(R) CPU        ||   W3690 || 3.47GHz || x86_64 ||
18 || xyzzy.i      || XEN            || Intel(R) Xeon(R) CPU        ||   X5679 || 3.20GHz || x86_64 ||
19 || glaptop-x220 || Dell T3500     || Intel(R) Core(TM) i5        ||   2520M || 2.50GHz || x86_64 ||
20 || giskard-x201 || Lenovo X201    || Intel(R) Core(TM) i7 CPU    ||   M 620 || 2.67GHz || x86_64 ||
21 || istek        || Lenovo X201    || Intel(R) Core(TM) i5 CPU    ||   M 540 || 2.53GHz || x86_64 ||
22 || r2d2         || PowerEdge R410 || Intel(R) Xeon(R) CPU        ||   E5520 || 2.27GHz || x86_64 ||
23 || ummak        || Lenovo Laptop  || Intel(R) Core(TM)2 Duo CPU  ||   T9300 || 2.50GHz || x86_64 ||
24 || groucho      ||                || Intel(R) Core(TM)2          ||   Q6600 || 2.40GHz || x86_64 ||
25 || asus-m2avm   || ASUS M2-AVM    || AMD Athlon 64 X2            ||   5600+ || 2.90GHz || x86_64 ||
26 || triton       ||                || AMD Quad-Core Opteron       || 2374 HE || 2.21GHz || x86_64 ||
27 || sroselli     || Lenovo x200s   || Intel(R) Core(TM)2 Duo CPU  ||   L9400 || 1.80GHz || x86_64 ||
28 || helios       ||                || Intel(R) Core(TM)2 Duo CPU  ||   P7350 || 2.00GHz || x86_64 ||
29 || sunjammer    || XEN            || AMD Dual-Core Opteron       || 2216 HE || 2.41GHz || x86_64 ||
30 || treehouse    || Supermicro     || AMD Opteron 2214HE          ||         || 2.20GHz || x86_64 ||
31 || beamrider    || KVM            || AMD Dual-Core Opteron       || 2214 HE || 2.20GHz || x86_64 ||
32 || trinity      || Supermicro     || Intel(R) Core(TM)2 CPU      ||    6400 || 2.13GHz || i386   ||
33 || bender       || Desktop PC     || Intel(R) Core(TM)2 CPU      ||    6300 || 1.86GHz || x86_64 ||
34 || sunjammerold || XEN            || ???                         ||         || ???     || x86_64 ||
35 || buildslave4  || XEN            || AMD Quad-Core Opteron       ||  2347HE || 1.90GHz || x86_64 ||
36 || giskard-x200s || Lenovo x200s  || Intel(R) Core(TM)2 Duo CPU  ||   U9300 || 1.20GHz || x86_64 ||
37 || loongson     || Yeelong        || MIPS                        ||         ||         || mipsel ||
38 || dfarning     || IdeaPad Y650   || Intel(R) Core(TM)2 Duo CPU  ||   P8700 || 2.53GHz || x86_64 ||
39
40 ==== Time (seconds) ====
41
42 || **hostname** ||**lzop**||**gzip**||**bzip2**||**lzma** || **xz**  ||**index**||
43 || gdesk        ||  0.228 ||  5.375 ||  29.697 ||         ||  60.827 ||        ||
44 || xyzzy.i      ||  0.255 ||  7.056 ||  36.174 ||         ||  73.280 ||        ||
45 || glaptop-x220 ||  2.622 ||  6.058 ||  31.523 ||         ||  72.578 ||        ||
46 || giskard-x201 ||  2.960 ||  6.952 ||  37.157 ||  97.508 ||  95.945 ||  2.213 ||
47 || istek        ||        ||  7.550 ||  35.480 ||         || 103.210 ||        ||
48 || r2d2         ||  3.896 ||  9.029 ||  37.652 ||  84.727 ||  84.554 ||        ||
49 || ummak        ||  3.790 ||  9.231 ||  36.311 ||  94.530 ||         ||  2.247 ||
50 || dfarning     ||  4.041 ||  9.963 ||  42.631 || 104.108 || 105.507 ||        ||
51 || groucho      ||  4.259 || 12.394 ||  56.541 || 158.497 ||         ||        ||
52 || asus-m2avm   ||  4.101 || 10.104 ||  66.804 || 201.453 ||         ||        ||
53 || triton       ||  4.445 || 11.363 ||  58.886 || 107.545 ||         ||        ||
54 || sroselli     ||  5.029 || 12.368 ||  48.520 || 113.379 || 108.542 ||        ||
55 || helios       ||  5.299 || 12.571 ||  50.886 || 115.713 ||         ||        ||
56 || sunjammer    ||  5.088 || 12.675 ||  71.956 || 130.412 || 154.248 ||        ||
57 || treehouse    ||        || 12.551 ||  76.207 || 139.021 || 150.076 ||        ||
58 || beamrider    ||  5.225 || 13.094 ||  77.227 || 139.882 || 155.931 ||        ||
59 || trinity      ||  5.196 || 15.462 ||  61.448 || 212.371 ||         ||  1.000 ||
60 || bender       ||  5.516 || 16.163 ||  62.373 || 201.685 ||         ||        ||
61 || sunjammerold ||  9.196 || 13.019 ||  85.394 || 216.806 ||         ||        ||
62 || buildslave4  ||  9.693 || 18.990 ||  73.788 || 202.622 ||         ||        ||
63 || giskard-x200s || 7.852 || 19.865 ||  89.311 || 266.837 || 153.761 ||  0.796 ||
64 || loongson     || 20.918 || 72.245 || 314.057 || 629.609 ||         ||        ||
65
66 ==== MB/s ====
67 || trinity      ||  33.68 ||  12.10 ||   2.85  ||    0.82 ||         ||        ||
68 || giskard      ||        ||        ||         ||         ||   4.442 ||        ||
69
70 ==== Notes ====
71  * all targets using 1 core only!
72  * The MB/s figure refers to trinity
73  * "index" is xz compression performance relative to trinity
74  * bender and trinity run same lzma version
75  * is xz faster or slower than lzma?