cnhnln 发表于 2005-11-9 21:17:23

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

--

--
     ◢█◣   __  ·                                                       
     /╰╯    __  ·    Make sure what you need,               /             
    /             █               and who you are.         /              
    \             █                                        _〓_             
     \          █                                       /    \         
    ◢▆◣                                                   ◥▆◤         



cyfdecyf 发表于 2005-11-9 22:15:45

7zip的Linux版p7zip其实也不错啊,可惜Windows下的支持rar,Linux下的不支持rar,网上下的很多东西确都是rar的。

bison_gao 发表于 2005-11-10 18:07:54

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了。

BOoRFGOnZ 发表于 2005-11-10 20:24:19

:-D 差别很大吗

demonlj 发表于 2005-11-10 20:49:29

以前一直都用bzip2,看来应该换换了。呵呵gzip

cnhnln 发表于 2005-11-10 22:48:40

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!

pakix 发表于 2005-11-11 17:58:13

it differ for difference file
so, u should define the test suite first.
页: [1]
查看完整版本: linux下常用压缩软件大文件压缩性能测试(by lazy@