Edit page memo/benchmark/compression
[wiki.git] / memo / benchmark / compression-algorithms
1 == Compression of source code ==
2
3 {{{
4 time tar cf  gcc-3.4.6-newbin.tar     gcc-3.4.6-newbin
5 time tar czf gcc-3.4.6-newbin.tar.gz  gcc-3.4.6-newbin
6 time tar cjf gcc-3.4.6-newbin.tar.bz2 gcc-3.4.6-newbin
7 time tar cJf gcc-3.4.6-newbin.tar.xz  gcc-3.4.6-newbin
8 time 7za a gcc-3.4.6-newbin.7z gcc-3.4.6-newbin >/dev/null
9 }}}
10
11 || **archiver**         || **size** || **pack** || **unpack** ||
12 || .tar                 ||    147MB ||   0.267s ||     0.809s ||
13 || .tar.gz              ||     53MB ||   9.251s ||     1.963s ||
14 || .tar.bz2             ||     45MB ||  17.134s ||     7.640s ||
15 || .tar.xz              ||     18MB ||  69.461s ||     2.218s ||
16 || .7z                  ||     15MB ||  45.396s ||     2.778s ||
17 || .7z -mx=9            ||   12.3MB ||  48.328s ||     2.482s ||
18 || .git                 ||     53MB ||          ||            ||
19 || .git packed 100/100  ||     29MB ||  25.421s ||     1.272s ||
20
21
22 === Git compressor breakdown ===
23 || git init                                     || 0.010s ||         ||
24 || git add .                                    || 3.507s || 53MB    ||
25 || git commit -q -m "pack me"                   || 0.074s || 53MB    ||
26 || git repack -a -f -d --window 100 --depth 100 || 21.830s  ||  29MB ||
27
28
29
30 All times computed on giskard-x201 (Intel i7 M 620 @ 2.67GHz, Fedora 14 x86_64)