nbench

1。也是linux 平台下測試效能的工具
2。好像比較針對 CPU 作測試
3。官網在 http://www.tux.org/~mayer/linux/bmark.html

怎麼操作

1。在官網下載 nbench-byte-2.2.3.tar.gz
2。解開
3。執行 make 後,就會產生 nbench
4。就可執行 ./nbench 進行測試

測試硬體規格

。Intel(R) Pentium(R) CPU G6950 2.80GHz
。RAM: 2G
。CentOS 5.6

測試結果

BYTEmark* Native Mode Benchmark ver. 2 (10/95)
Index-split by Andrew D. Balsa (11/97)
Linux/Unix* port by Uwe F. Mayer (12/96,11/97)

TEST                : Iterations/sec.  : Old Index   : New Index
:                  : Pentium 90* : AMD K6/233*
——————–:——————:————-:————
NUMERIC SORT        :          1375.8  :      35.28  :      11.59
STRING SORT         :          276.32  :     123.47  :      19.11
BITFIELD            :      5.1727e+08  :      88.73  :      18.53
FP EMULATION        :          268.56  :     128.87  :      29.74
FOURIER             :           29850  :      33.95  :      19.07
ASSIGNMENT          :          38.922  :     148.11  :      38.42
IDEA                :            7172  :     109.69  :      32.57
HUFFMAN             :          2259.9  :      62.67  :      20.01
NEURAL NET          :          63.669  :     102.28  :      43.02
LU DECOMPOSITION    :          1898.2  :      98.33  :      71.01
==========================ORIGINAL BYTEMARK RESULTS==========================
INTEGER INDEX       : 90.755
FLOATING-POINT INDEX: 69.891
Baseline (MSDOS*)   : Pentium* 90, 256 KB L2-cache, Watcom* compiler 10.0
==============================LINUX DATA BELOW===============================
CPU                 : Dual GenuineIntel Intel(R) Pentium(R) CPU        G6950  @ 2.80GHz 1200MHz
L2 Cache            : 3072 KB
OS                  : Linux 2.6.18-238.19.1.el5
C compiler          :
libc                :
MEMORY INDEX        : 23.873
INTEGER INDEX       : 21.769
FLOATING-POINT INDEX: 38.764
Baseline (LINUX)    : AMD K6/233*, 512 KB L2-cache, gcc 2.7.2.3, libc-5.4.38
* Trademarks are property of their respective holder.

real    4m12.448s
user    4m12.143s
sys     0m0.019s

它上面有 pentium 90 跟 amd k6/233 的數值,跟現在的硬體比較是落差很大,也是理所當然的吧,不然現在的cpu應該會哭

項目說明 可參考 http://en.wikipedia.org/wiki/NBench

Numeric sort – Sorts an array of long integers.
String sort – Sorts an array of strings of arbitrary length.
Bitfield – Executes a variety of bit manipulation functions.
Emulated floating-point – A small software floating-point package.
Fourier coefficients – A numerical analysis routine for calculating series approximations of waveforms.
Assignment algorithm – A well-known task allocation algorithm.
Huffman compression – A well-known text and graphics compression algorithm.
IDEA encryption – A relatively new block cipher algorithm.
Neural Net – A small but functional back-propagation network simulator.
LU Decomposition – A robust algorithm for solving linear equations.
Related posts 相關文章
升級 AlmaLinux 8.4 到 AlmaLinux 8.5
More...
Google 對於 Linux 的高效能調校實作
More...
可以督促你快點升級 PHP 7.4 的測試報告
More...
硬碟分割方式 2016
More...

作者

留言

撰寫回覆或留言

發佈留言必須填寫的電子郵件地址不會公開。