SPECJVM2008 再學習

SPECJVM2008 再學習


摘要

昨天的太水了
感覺今天有必要再水一點..

存在的問題

默認進行啓動 sunflow 必定過不去.
一般的解決辦法要求進行重新編譯
但是我不知道怎麼下載源碼...
索性--繞過

學習的網站

https://spec.org/jvm2008/docs/UserGuide.html

想法是將部分內容不進行計算.

主要的測試配置項目有
startup.helloworld	compiler.compiler	scimark.fft.small
startup.compiler.compiler	compiler.sunflow	scimark.lu.small
startup.compiler.sunflow	compress	scimark.sor.small
startup.compress	crypto.aes	scimark.sparse.small
startup.crypto.aes	crypto.rsa	scimark.monte_carlo
startup.crypto.rsa	crypto.signverify	serial
startup.crypto.signverify	derby	sunflow
startup.mpegaudio	mpegaudio	xml.transform
startup.scimark.fft	scimark.fft.large	xml.validation
startup.scimark.lu	scimark.lu.large
startup.scimark.monte_carlo	scimark.sor.large
startup.scimark.sor	scimark.sparse.large
startup.scimark.sparse
startup.serial
startup.sunflow
startup.xml.transform
startup.xml.validation

其實有一個官方說明:
COMPILER: compiler.compiler, compiler.sunflow
CRYPTO: crypto.aes, crypto.rsa, crypto.signverify
SCIMARK: scimark.fft.large, scimark.lu.large, scimark.sor.large, scimark.sparse.large, scimark.fft.small, scimark.lu.small, scimark.sor.small, scimark.sparse.small, scimark.monte_carlo
STARTUP: {all sub-benchmarks having names beginning with startup. } See Appendix A for the complete list.
XML: xml.transform, xml.validation

所以理論上 我可以只選擇 startup 開頭的

獲取需要測試的信息

將上面部分內容保存爲 1.txt

然後執行
cat 1.txt |awk '{print $1}'|grep -v sunflow |xargs

得出結果爲:
startup.helloworld startup.compiler.compiler startup.compress startup.crypto.aes startup.crypto.rsa startup.crypto.signverify startup.mpegaudio startup.scimark.fft startup.scimark.lu startup.scimark.monte_carlo startup.scimark.sor startup.scimark.sparse startup.serial startup.xml.transform startup.xml.validation

測試腳本爲:
java -jar SPECjvm2008.jar -ikv startup.helloworld startup.compiler.compiler startup.compress startup.crypto.aes startup.crypto.rsa startup.crypto.signverify startup.mpegaudio startup.scimark.fft startup.scimark.lu startup.scimark.monte_carlo startup.scimark.sor startup.scimark.sparse startup.serial startup.xml.transform startup.xml.validation

結果形成

如果沒有指定, 會在當前目錄下形成一個results 目錄裏面有 測試次數的一個文件夾
可以打開裏面的 html 進行查看.
結果比較好看一些. 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章