linux centos中,利用7za b命令做基准测试来进行快速跑分 CPU负载性能对比的方法
yum -y install glibc.i686 wget tar bzip2wget --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
tar -xjvf p7zip_16.02_x86_linux_bin.tar.bz2
cd /root/p7zip_16.02/bin
./7za b
双核机器性能对比
7-Zip (a) 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:337934573372307631923395345633453331
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) 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:345834733499349234883469327533183332
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: 181391296 136217646| 3139781486 180226779
23: 177881322 137118124| 3014001485 175626078
24: 162231273 137117444| 2960901506 172625989
25: 160321331 137518305| 2932351488 175426097
----------------------------------| ------------------------------
Avr: 1305 137017880| 1491 175926236
Tot: 1398 156522058
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为佳
页:
[1]