Here are the results of benchmarks of 3 compressors: 7z, bzip2 and gzip, and
GCCs 3.4.6, 4.1.3-20080225, 4.2.4-20080227, 4.3.0-20080228 & 4.4.0-20080222.

------------------------------------------------------------------------------
# User's time is taken, machine is Ath64 3200+ 2.0 GHz x1, 64+64K L1, 512K L2.
# Every GCC-4 compilers were compiled so
mkdir build ; cd build
../configure --prefix=/opt/gcc????????? --disable-shared \
--disable-threads --disable-checking --enable-__cxa_atexit \
--enable-languages=c,c++,fortran --enable-bootstrap
time make "CFLAGS=-O3 -fomit-frame-pointer -march=i686 -pipe \
-mno-sse3 -msse2 -msse -mno-mmx -mno-3dnow \
-funroll-loops -finline-functions -fpeel-loops" bootstrap
make install
------------------------------------------------------------------------------
1. gcc-3.4.6 (the default of the distro)
------------------------------------------------------------------------------
2. gcc-4.1.3-20080225     ( built in 40 minutes, 110 MiB /opt/gcc41320080225 )
export PATH=/opt/gcc41320080225/bin:$PATH
export LD_LIBRARY_PATH=/opt/gcc41320080225//lib
------------------------------------------------------------------------------
3. gcc-4.2.4-20080227     ( built in 65 minutes, 150 MiB /opt/gcc42420080227 )
export PATH=/opt/gcc42420080227/bin:$PATH
export LD_LIBRARY_PATH=/opt/gcc42420080227/lib
------------------------------------------------------------------------------
4. gcc-4.3.0-20080228     ( built in 85 minutes, 114 MiB /opt/gcc43020080228 )
export PATH=/opt/gcc43020080228/bin:$PATH
export LD_LIBRARY_PATH=/opt/gcc43020080228/lib
------------------------------------------------------------------------------
5. gcc-4.4.0-20080222     ( built in 79 minutes, 112 MiB /opt/gcc44020080222 )
export PATH=/opt/gcc44020080222/bin:$PATH
export LD_LIBRARY_PATH=/opt/gcc44020080222/lib
------------------------------------------------------------------------------
                                  p7zip-4.57
                                  ----------
1. tar -jxf p7zip_4.57_src_all.tar.bz2
2. Edit CPP/7zip/Bundles/Alone/makefile adding
LOCAL_FLAGS+=.... below ...
3. time make ; strip --strip-all bin/7za ; ls -l bin/7za ; size bin/7za
4. linux-2.4.36.2.tar.gz ( 38'720'979 bytes, 175'237'120 bytes .tar,
                           24'471'728 bytes .tar.7z )
   time gzip -cd ../linux-2.4.36.2.tar.gz | ./bin/7za a -t7z -m0=lzma -mx=9 \
   -mfb=273 -md=48m -ms=on -si trash.7z  ; ls -l *7z
------------------------------------------------------------------------------
LOCAL_FLAGS+=-O3 -fomit-frame-pointer -march=i686 \
             -mno-sse3 -msse2 -msse -mno-mmx -mno-3dnow \
             -funroll-loops -finline-functions -fpeel-loops

1. 1m50s compile, 1630164 file, 1618639 text, 6120 data, 27168 bss, 5m50s run.
2. 1m53s compile, 1665952 file, 1649829 text, 4668 data, 29160 bss, 6m04s run.
3. 2m08s compile, 1629088 file, 1613313 text, 4672 data, 29160 bss, 5m54s run.
4. 2m36s compile, 2063216 file, 2047420 text, 4380 data, 29160 bss, 6m14s run.
5. 2m30s compile, 1976228 file, 1960164 text, 4380 data, 29160 bss, 6m12s run.
------------------------------------------------------------------------------
LOCAL_FLAGS+=-Os -fomit-frame-pointer -march=i686 \
             -mno-sse3 -mno-sse2 -mno-sse -mno-mmx -mno-3dnow

1. 1m21s compile, 1123476 file, 1111971 text, 6120 data, 27168 bss, 6m11s run.
2. 1m01s compile,  723872 file,  707806 text, 4672 data, 29224 bss, 6m39s run.
3. 1m11s compile,  720264 file,  705082 text, 4220 data, 29004 bss, 6m15s run.
4. 1m01s compile,  721688 file,  706557 text, 3928 data, 28908 bss, 6m12s run.
5. 1m01s compile,  700612 file,  685009 text, 3928 data, 28940 bss, 6m12s run.
------------------------------------------------------------------------------
LOCAL_FLAGS+=-Os -fomit-frame-pointer -march=i686 \
             -mno-sse3 -mno-sse2 -mno-sse -mno-mmx -mno-3dnow \
             -funroll-loops -finline-functions -fpeel-loops

3. 1m20s compile,  908496 file,  893314 text, 4220 data, 29004 bss, 6m38s run.
5. 1m14s compile,  969228 file,  953629 text, 3928 data, 28940 bss, 6m18s run.
------------------------------------------------------------------------------
                                  bzip2-1.0.4
                                  -----------
1. tar -zxf bzip2-1.0.4.tar.gz
2. time make "CFLAGS=-Wall -Winline -D_FILE_OFFSET_BITS=64 ...below... " \
   ; strip --strip-all bzip2 ; ls -l bzip2 ; size bzip2
3. linux-2.4.36.2.tar.gz ( 38'720'979 bytes, 175'237'120 bytes .tar,
                           24'471'728 .tar.7z, 31'095'864 bytes .tar.bz2 )
   time gzip -cd ../linux-2.4.36.2.tar.gz | ./bzip2 -9 > /dev/null
------------------------------------------------------------------------------
-O3 -fomit-frame-pointer -march=i686 \
-mno-sse3 -msse2 -msse -mno-mmx -mno-3dnow \
-funroll-loops -finline-functions -fpeel-loops

1.  7.0s compile,  111660 file,  104530 text, 3644 data,  4400 bss, 1m15s run.
2.  7.3s compile,  107664 file,  100538 text, 3524 data,  4400 bss, 1m15s run.
3.  8.7s compile,  111760 file,  103538 text, 3524 data,  4400 bss, 1m15s run.
4. 12.4s compile,  119952 file,  112618 text, 3524 data,  4400 bss, 1m15s run.
5. 12.5s compile,  119972 file,  112730 text, 3524 data,  4400 bss, 1m15s run.
------------------------------------------------------------------------------
-Os -fomit-frame-pointer -march=i686 \
-mno-sse3 -mno-sse2 -mno-sse -mno-mmx -mno-3dnow

1.  4.0s compile,   66604 file,   61104 text, 3648 data,  4400 bss, 1m08s run.
2.  3.8s compile,   62608 file,   54735 text, 3528 data,  4400 bss, 1m08s run.
3.  4.3s compile,   62564 file,   55955 text, 3508 data,  4312 bss, 1m08s run.
4.  4.0s compile,   62560 file,   56991 text, 3504 data,  4316 bss, 1m08s run.
5.  4.0s compile,   62580 file,   56863 text, 3504 data,  4316 bss, 1m08s run.
------------------------------------------------------------------------------
                                  gzip-1.3.12
                                  -----------
1. tar -zxf gzip-1.3.12.tar.gz
2. ./configure ; time make "CFLAGS=...below... " \
   ; strip --strip-all gzip ; ls -l gzip ; size gzip
3. linux-2.4.36.2.tar.gz ( 38'720'979 bytes, 175'237'120 bytes .tar,
                           24'471'728 .tar.7z, 31'095'864 bytes .tar.bz2 )
   time gzip -cd ../linux-2.4.36.2.tar.gz | ./gzip -9 > /dev/null
------------------------------------------------------------------------------
-O3 -fomit-frame-pointer -march=i686 \
-mno-sse3 -msse2 -msse -mno-mmx -mno-3dnow \
-funroll-loops -finline-functions -fpeel-loops

1.  3.8s compile,  84920 file,   79499 text, 3316 data, 329520 bss, 30.9s run.
2.  4.4s compile,  97172 file,   91536 text, 2972 data, 329520 bss, 30.6s run.
3.  4.8s compile,  89940 file,   84341 text, 2964 data, 329520 bss, 29.4s run.
4.  5.7s compile, 110100 file,  104487 text, 2964 data, 329520 bss, 29.8s run.
5.  5.7s compile, 110272 file,  104635 text, 2964 data, 329520 bss, 29.7s run.
------------------------------------------------------------------------------
-Os -fomit-frame-pointer -march=i686 \
-mno-sse3 -mno-sse2 -mno-sse -mno-mmx -mno-3dnow

1.  2.2s compile,  44440 file,   38992 text, 3324 data, 329520 bss, 30.9s run.
2.  2.5s compile,  46228 file,   40530 text, 2972 data, 329520 bss, 30.9s run.
3.  2.8s compile,  45656 file,   40226 text, 2808 data, 329168 bss, 30.4s run.
4.  2.6s compile,  45576 file,   40156 text, 2796 data, 329176 bss, 29.7s run.
5.  2.6s compile,  45432 file,   39968 text, 2796 data, 329176 bss, 30.3s run.
------------------------------------------------------------------------------

   Sincerely J.C.Pizarro ;)

Reply via email to