龙芯开源社区

 找回密码
 注册新用户(newuser)
楼主: jamesr

压缩、解压测试脚本

  [复制链接]
 楼主| 发表于 2008-7-9 10:01:49 | 显示全部楼层
新版文件在此下载:
ftp://www.linux-ren.org/pub/members/james_r/yasuo.tar.gz
tar xf yasuo.tar.gz
./yasuo.sh 2>&1 |tee result.txt

[ 本帖最后由 jamesr 于 2008-7-9 10:11 编辑 ]
发表于 2008-7-9 10:21:26 | 显示全部楼层
PIII 800EB测试的结果,操作系统是Aisanux server3
正在生成32M测试文件...
8192+0 records in
8192+0 records out
33554432 bytes (34 MB) copied, 27.9698 seconds, 1.2 MB/s
测试文件生成完毕,测试开始
系统信息:
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 8
model name      : Pentium III (Coppermine)
stepping        : 6
cpu MHz         : 799.799
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 mtrr pge mca cmov pat pse36 mmx fxsr sse up
bogomips        : 1600.55

Linux version 2.6.18-8.10AX (packager@asianux.com) (gcc version 4.1.1 20070105 (Asianux 3.0 4.1.1-52.2.1)) #1 SMP Tue Aug 14 04:52:14 EDT 2007
bzip2, a block-sorting file compressor.  Version 1.0.3, 15-Feb-2005.

   Copyright (C) 1996-2005 by Julian Seward.

   This program is free software; you can redistribute it and/or modify
   it under the terms set out in the LICENSE file, which is included
   in the bzip2-1.0 source distribution.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   LICENSE file for more details.

bzip2: I won't write compressed data to a terminal.
bzip2: For help, type: `bzip2 --help'.
gzip 1.3.5
(2002-09-30)
Copyright 2002 Free Software Foundation
Copyright 1992-1993 Jean-loup Gailly
This program comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of this program
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Compilation options:
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H HAVE_MEMORY_H HAVE_STRING_H HAVE_LSTAT
Written by Jean-loup Gailly.
bzip2默认压缩,解压:

real    1m24.550s
user    1m16.962s
sys     0m0.986s

real    0m23.289s
user    0m19.464s
sys     0m1.492s

real    1m20.918s
user    1m16.848s
sys     0m0.960s

real    0m22.014s
user    0m19.522s
sys     0m1.386s

real    1m21.103s
user    1m17.423s
sys     0m0.903s

real    0m22.052s
user    0m19.348s
sys     0m1.402s
gzip默认压缩,解压:

real    0m10.940s
user    0m8.468s
sys     0m1.306s

real    0m2.826s
user    0m1.022s
sys     0m0.895s

real    0m11.141s
user    0m8.500s
sys     0m1.279s

real    0m2.157s
user    0m1.079s
sys     0m0.860s

real    0m12.743s
user    0m10.693s
sys     0m1.330s

real    0m2.106s
user    0m1.043s
sys     0m0.860s
测试完毕,删除测试文件
发表于 2008-7-9 10:32:12 | 显示全部楼层

回复 #51 jamesr 的帖子

用新版测试文件的结果

$ ./yasuo.sh
绯荤粺淇℃伅:
system type             : lemote-fulong
processor               : 0
cpu model               : Godson2 V0.3  FPU V0.1
BogoMIPS                : 532.48
wait instruction        : no
microsecond timers      : yes
tlb_entries             : 64
extra interrupt vector  : no
hardware watchpoint     : no
ASEs implemented        :
VCED exceptions         : not available
VCEI exceptions         : not available

Linux version 2.6.18.1-2fnas (root@RAYS-0bedc0f6) (gcc version 4.3.1 20080309 (prerelease) (RAYS 4.3.0-1.rays0) ) #4 Mon Jun 2 21:18:17 CST 2008
bzip2, a block-sorting file compressor.  Version 1.0.5, 10-Dec-2007.
   
   Copyright (C) 1996-2007 by Julian Seward.
   
   This program is free software; you can redistribute it and/or modify
   it under the terms set out in the LICENSE file, which is included
   in the bzip2-1.0.5 source distribution.
   
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   LICENSE file for more details.
   
bzip2: I won't write compressed data to a terminal.
bzip2: For help, type: `bzip2 --help'.
gzip 1.3.12
Copyright (C) 2007 Free Software Foundation, Inc.
Copyright (C) 1993 Jean-loup Gailly.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by Jean-loup Gailly.
bzip2榛樿鍘嬬缉锛岃В鍘?

real    0m38.637s
user    0m38.320s
sys     0m0.288s

real    0m13.992s
user    0m13.612s
sys     0m0.288s

real    0m39.018s
user    0m38.712s
sys     0m0.264s

real    0m13.961s
user    0m13.596s
sys     0m0.320s

real    0m38.755s
user    0m38.352s
sys     0m0.360s

real    0m13.971s
user    0m13.592s
sys     0m0.356s
gzip榛樿鍘嬬缉锛岃В鍘?

real    0m12.778s
user    0m12.480s
sys     0m0.284s

real    0m2.096s
user    0m1.760s
sys     0m0.300s

real    0m12.819s
user    0m12.400s
sys     0m0.388s

real    0m2.050s
user    0m1.768s
sys     0m0.280s

real    0m13.035s
user    0m12.576s
sys     0m0.416s

real    0m2.076s
user    0m1.800s
sys     0m0.272s
娴嬭瘯瀹屾瘯锛屽垹闄ゆ祴璇曟枃浠?
发表于 2008-7-9 10:50:14 | 显示全部楼层
用新版测试文件的结果
PIII 800EB

系统信息:
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 8
model name      : Pentium III (Coppermine)
stepping        : 6
cpu MHz         : 799.799
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 mtrr pge mca cmov pat pse36 mmx fxsr sse up
bogomips        : 1600.55

Linux version 2.6.18-8.10AX (packager@asianux.com) (gcc version 4.1.1 20070105 (Asianux 3.0 4.1.1-52.2.1)) #1 SMP Tue Aug 14 04:52:14 EDT 2007
bzip2, a block-sorting file compressor.  Version 1.0.3, 15-Feb-2005.

   Copyright (C) 1996-2005 by Julian Seward.

   This program is free software; you can redistribute it and/or modify
   it under the terms set out in the LICENSE file, which is included
   in the bzip2-1.0 source distribution.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   LICENSE file for more details.

bzip2: I won't write compressed data to a terminal.
bzip2: For help, type: `bzip2 --help'.
gzip 1.3.5
(2002-09-30)
Copyright 2002 Free Software Foundation
Copyright 1992-1993 Jean-loup Gailly
This program comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of this program
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Compilation options:
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H HAVE_MEMORY_H HAVE_STRING_H HAVE_LSTAT
Written by Jean-loup Gailly.
bzip2默认压缩,解压:

real    0m54.397s
user    0m47.564s
sys     0m0.696s

real    0m14.991s
user    0m13.372s
sys     0m0.987s

real    0m49.581s
user    0m47.519s
sys     0m0.561s

real    0m14.415s
user    0m13.191s
sys     0m0.982s

real    0m48.313s
user    0m47.492s
sys     0m0.546s

real    0m14.496s
user    0m13.279s
sys     0m0.923s
gzip默认压缩,解压:

real    0m11.597s
user    0m10.553s
sys     0m0.715s

real    0m2.512s
user    0m1.640s
sys     0m0.676s

real    0m11.636s
user    0m10.391s
sys     0m0.847s

real    0m2.417s
user    0m1.566s
sys     0m0.676s

real    0m11.877s
user    0m10.634s
sys     0m0.840s

real    0m2.480s
user    0m1.562s
sys     0m0.668s
测试完毕,删除测试文件
发表于 2008-7-9 12:58:01 | 显示全部楼层
系统信息:
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 10
model name      : AMD Athlon(tm) Proswssor
stepping        : 0
cpu MHz         : 1921.123
cache size      : 512 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow ts
bogomips        : 3844.86

Linux version 2.6.18-6-486 (Debian 2.6.18.dfsg.1-18etch1) (waldi@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 Sun Feb 10 22:06:33 UTC 2008
bzip2, a block-sorting file compressor.  Version 1.0.3, 15-Feb-2005.

   Copyright (C) 1996-2005 by Julian Seward.

   This program is free software; you can redistribute it and/or modify
   it under the terms set out in the LICENSE file, which is included
   in the bzip2-1.0 source distribution.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   LICENSE file for more details.

gzip 1.3.5
(2002-09-30)
Copyright 2002 Free Software Foundation
Copyright 1992-1993 Jean-loup Gailly
This program comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of this program
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Compilation options:
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H HAVE_MEMORY_H HAVE_STRING_H HAVE_LSTAT ASMV
Written by Jean-loup Gailly.
bzip2默认压缩,解压:

real    0m16.525s
user    0m15.389s
sys     0m0.188s

real    0m6.132s
user    0m5.340s
sys     0m0.240s

real    0m16.573s
user    0m15.421s
sys     0m0.168s

real    0m5.878s
user    0m5.296s
sys     0m0.200s

real    0m16.485s
user    0m15.429s
sys     0m0.168s

real    0m6.030s
user    0m5.280s
sys     0m0.284s
gzip默认压缩,解压:

real    0m4.041s
user    0m3.612s
sys     0m0.136s

real    0m0.922s
user    0m0.616s
sys     0m0.140s

real    0m4.051s
user    0m3.600s
sys     0m0.152s

real    0m0.925s
user    0m0.576s
sys     0m0.192s

real    0m4.129s
user    0m3.588s
sys     0m0.180s

real    0m1.005s
user    0m0.608s
sys     0m0.164s
测试完毕,删除测试文件
发表于 2008-7-9 13:09:49 | 显示全部楼层
此网太慢,回家再试。这个新的文件是怎么生成出来的呢?

原帖由 jamesr 于 2008-7-9 10:01 发表
新版文件在此下载:
ftp://www.linux-ren.org/pub/members/james_r/yasuo.tar.gz
tar xf yasuo.tar.gz
./yasuo.sh 2>&1 |tee result.txt
发表于 2008-7-9 13:12:38 | 显示全部楼层
2F差距缩小,主要是因为这次的testdata文件压缩比较大所致。
大家可以自找个32M左右的压缩文件化名为testdata再测一次,与第一个版本的测试角本结果差不多。
发表于 2008-7-9 13:22:44 | 显示全部楼层
感觉这个结果2F800M主频下可能,在GCC4..下计算所用SPEC测试过BZIP2等整数性能,那个应该是权威测试,跟AMD的性能比较.......................主频比较.......................,2E应该用这个重测
 楼主| 发表于 2008-7-9 13:23:36 | 显示全部楼层
原帖由 simonxue21 于 2008-7-9 13:09 发表
此网太慢,回家再试。这个新的文件是怎么生成出来的呢?



这个文件是从硬盘上Dump下来的,信息性较强。原来的文件是用系统提供的伪随机数生成器生成的。
 楼主| 发表于 2008-7-9 13:25:12 | 显示全部楼层
原帖由 wshd 于 2008-7-9 13:22 发表
感觉这个结果2F800M主频下可能,在GCC4..下计算所用SPEC测试过BZIP2等整数性能,那个应该是权威测试,跟AMD的性能比较.......................主频比较.......................,2E应该用这个重测


期待优化版的测试,优化参考参数也都已经给出了,编译一个bzip2和gzip应该是很快的。

本版积分规则

小黑屋|手机版|Archiver|Lemote Inc.  

GMT+8, 2019-8-25 03:48 , Processed in 0.198241 second(s), 16 queries .

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