linux centos中,利用7za b命令做基准测试来进行快速跑分 CPU负载性能对比的方法 看全部

  1. yum -y install glibc.i686 wget tar bzip2
  2. wget --no-check-certificate https://downloads.sourceforge.net/project/p7zip/p7zip/16.02/p7zip_16.02_x86_linux_bin.tar.bz2 -O /root/p7zip_16.02_x86_linux_bin.tar.bz2
  3. tar -xjvf p7zip_16.02_x86_linux_bin.tar.bz2
  4. cd /root/p7zip_16.02/bin
  5. ./7za b



双核机器性能对比
7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,2 CPUs x64)

x64
CPU Freq:  3379  3457  3372  3076  3192  3395  3456  3345  3331

RAM size:     992 MB,  # CPU hardware threads:   2
RAM usage:    441 MB,  # Benchmark threads:      2

                       Compressing  |                  Decompressing
Dict     Speed Usage    R/U Rating  |      Speed Usage    R/U Rating
         KiB/s     %   MIPS   MIPS  |      KiB/s     %   MIPS   MIPS

22:       3745   170   2147   3644  |      62642   197   2712   5348
23:       3512   172   2077   3579  |      60125   196   2660   5204
24:       3526   172   2211   3792  |      55839   189   2591   4902
25:       3287   173   2168   3753  |      56983   197   2580   5072
----------------------------------  | ------------------------------
Avr:             172   2151   3692  |              195   2636   5132
Tot:             183   2393   4412


16核心性能机器对比
7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,16 CPUs x64)

x64
CPU Freq:  3458  3473  3499  3492  3488  3469  3275  3318  3332

RAM size:    7838 MB,  # CPU hardware threads:  16
RAM usage:   3530 MB,  # Benchmark threads:     16

                       Compressing  |                  Decompressing
Dict     Speed Usage    R/U Rating  |      Speed Usage    R/U Rating
         KiB/s     %   MIPS   MIPS  |      KiB/s     %   MIPS   MIPS

22:      18139  1296   1362  17646  |     313978  1486   1802  26779
23:      17788  1322   1371  18124  |     301400  1485   1756  26078
24:      16223  1273   1371  17444  |     296090  1506   1726  25989
25:      16032  1331   1375  18305  |     293235  1488   1754  26097
----------------------------------  | ------------------------------
Avr:            1305   1370  17880  |             1491   1759  26236
Tot:            1398   1565  22058

CPU Freq是计算8次CPU主频并且展示,RAM size是系统总内存,RAM usage是测试需要占用的内存大小。
解释下,Compressing为压缩,Decompressing为解压
Speed是压缩解压速度,单位KB/s,Usage是CPU使用率,一个核心满载=100,2个核心满载等于200,当然考虑到系统其它占用,双核机器一般是不会到200的
R/U Rating MIPS第一行的为CPU使用率评分,第二行为总评分。
Avr为平均,Tot为压缩解压总体评分
主要数据看MIPS评分就行了,单核分数2000为佳