linux下常用压缩软件大文件压缩性能测试(by lazy@
发信人: lazy (draughts), 信区: Linux标题: linux下常用压缩软件大文件压缩性能测试
发信站: 北大未名站 (2003年03月18日22:32:19 星期二), 转信
对一个615.8MB的文本文件进行压缩,测试结果如下
压缩:
大小(MB) 时间(user+sys)
compress 343.4 1m46s
gzip 332.7 1m47s
bzip2 274.5 6m25s
bzip2(fast) 296.1 4m24s
winrar3.11 277.1 17m00s
解压缩:
时间(real) 时间(user) 时间(sys)
compress 1m02s 14.58s 7.35s
gzip 1m01s 17.15s 4.66s
bzip2 2m37s 2m30s 6.12s
bzip2(fast) 1m51s 1m44s 5.38s
winrar3.11 56s 32.38s 5.64s
--
--
[0;37;40m [41m [0;1;31;41m◢█◣ [0;30;43m__ [41m[42m [47m·[41m [40m [37m
[41m [0;1;37;41m/[33m╰╯ [0;30;43m__ [44m[42m [47m·[41m [37mMake sure what you need, [0;1;37;41m/ [40m [0;37;40m
[0;1;37;41m/ [43m [44m[42m [30;41m█ [0;37;41mand who you are. [0;1;37;41m/ [40m [0;37;40m
[0;1;37;41m\ [43m [44m[42m [30;41m█ [37m_〓_ [40m [0;37;40m
[41m [0;1;37;41m\ [43m [44m[42m [30;41m█ [37m/ \ [0;37;40m
[31;47m◢▆◣ [0;1;34;47m◥▆◤ [0;37;40m
[m 7zip的Linux版p7zip其实也不错啊,可惜Windows下的支持rar,Linux下的不支持rar,网上下的很多东西确都是rar的。 linux下有rar程序的
$rar --help
RAR 3.41 Copyright (c) 1993-2004 Alexander Roshal 2 Nov 2004
Shareware version Type RAR -? for help
Usage: rar <command> -<switch 1> -<switch N> <archive> <files...>
<@listfiles...> <path_to_extract\>
<Commands>
a Add files to archive
c Add archive comment
cf Add files comment
...
那就不担心别人发rar了。 :-D 差别很大吗 以前一直都用bzip2,看来应该换换了。呵呵gzip Large file compression: gzip < bzip2 < rzip
I haven't heared of rzip before either, but after someone mentioned it on the g4u list when the topic came to compression of filesystem images (i.e. large files), I had a look. Rzip claims to operates best at "large" files, so I tried to compress a 512MB qemu disk image, and here are the results:
-rw-r--r-- 1 root wheel 524288000 Mar 30 19:39 harddisk
-rw-r--r-- 1 feyrer wheel 241776704 Jul 20 04:14 harddisk.gz
-rw-r--r-- 1 feyrer wheel 228779032 Jul 20 04:55 harddisk.bz2
-rw-r--r-- 1 feyrer wheel 196960165 Jul 20 04:39 harddisk.rz
Rzip (.rz) seems the clear winner here with a compression ratio of 2.66, compared to the 2.17 of "gzip -9" and 2.29 of "bzip2 -9".
Rzip is available in pkgsrc/archivers/rzip, check out the rzip homepage http://rzip.samba.org/ for more information!
it differ for difference file
so, u should define the test suite first.
页:
[1]