SPEC是標準性能評估公司(Standard Performance Evaluation Corporation)的簡稱。SPEC CPU 2006包括了CINT2006和C FP2006兩個子項目,前者用於測量和對比整數性能,而後者則用於測量和對比浮點性能。
SPEC CPU測試中,測試系統的處理器、內存子系統和使用到的編譯器(SPEC CPU提供的是源代碼,並且允許測試用戶進行一定的編譯優化)都會影響最終的測試性能,而I/O(磁盤)、網絡、操作系統和圖形子系統對於SPEC CPU2006的影響非常的小。重點測試系統的處理器,內存子系統和編譯器。
建立安裝目錄
mkdir /speccpu
將specCPU2006解壓到制定目錄:
tar -xvf specCPU2006-1.2.tar --directory=/speccpu
執行命令安裝SPEC CPU 2006
[root@centos1 speccpu]# ./install.sh
[root@centos1 speccpu]# runspec -V
SPEC CPU 2006佔用空間整整3.7個G
[root@centos1 /]# du /speccpu -sh
3.7G /speccpu
[root@centos1 /]#
從模版複製測試配置文件
[root@centos1 result]# cp /speccpu/config/Example-linux64-amd64-gcc43+.cfg /speccpu/config/test.cfg
修改配置文件內容:
安裝gcc-gfortran.x86_64、gcc-c++,因為跑測試需要用到這兩個依賴包,。
[root@centos1 speccpu]# yum install gcc-gfortran.x86_64
[root@centos1 speccpu]# yum install gcc-c++
導入環境變量:
[root@centos1 speccpu]# source /speccpu/shrc
執行runspec命令進行CPU跑分
runspec -c /speccpu/config/test.cfg int
歷時12970秒,將近4個小時跑完
跑分結束之後會生成各種格式的跑分結果報告文件
Gif格式的結果報告:
html格式的結果報告
第一次用這個軟件,不知道跑分結果是不是正常。
閱讀更多 IT男劉加加 的文章