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 进行查看.
结果比较好看一些. 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章