QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2880|回复: 6

linux下常用压缩软件大文件压缩性能测试(by lazy@

[复制链接]
发表于 2005-11-9 21:17:23 | 显示全部楼层 |阅读模式
发信人: 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.           /              
    \               █                                        _〓_             
     \              █                                       /    \             
    ◢▆◣                                                   ◥▆◤             

※ 来源:.天大求实 BBS bbs.tju.edu.cn.[FROM: bbs.tju.edu.cn]
发表于 2005-11-9 22:15:45 | 显示全部楼层
7zip的Linux版p7zip其实也不错啊,可惜Windows下的支持rar,Linux下的不支持rar,网上下的很多东西确都是rar的。
回复

使用道具 举报

发表于 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了。
回复

使用道具 举报

发表于 2005-11-10 20:24:19 | 显示全部楼层
差别很大吗
回复

使用道具 举报

发表于 2005-11-10 20:49:29 | 显示全部楼层
以前一直都用bzip2,看来应该换换了。呵呵gzip
回复

使用道具 举报

 楼主| 发表于 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!
回复

使用道具 举报

发表于 2005-11-11 17:58:13 | 显示全部楼层
it differ for difference file [types]
so, u should define the test suite first.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-5-3 10:56 , Processed in 0.066317 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表