SPECjvm2008的安装测试

1 篇文章 0 订阅

1.下载jar包后需要安装SPECjvm,命令如下,注意需要添加参数-i console。

$ java -jar SPECjvm2008_1_01_setup.jar -i console

2.设置$JAVA_HOME等环境变量

我在HOST上使用的是Fedora19自带的OpenJDK,

在文件/etc/profile中设置如下:

JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.2.7.fc19.x86_64
CLASSPATH=.:$JAVA_HOME/lib/tools.jar:/lib.dt.jar
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME CLASSPATH PATH

保存后,执行 source /etc/profile即可。

3.测试SPECjvm是否安装成功

在安装目录下找到脚本run-specjvm.sh

./run-specjvm.sh startup.helloworld -ikv

startup.helloworld 用于测试helloworld程序的启动时间,选择这个测试用例是考虑到运行速度比较快。 -ikv的意思是跳过签名检查,这个过程有点慢。

成功后显示如下所是:

SPECjvm2008 Base
  Properties file:   none
  Benchmarks:        startup.helloworld

  WARNING: Run will not be compliant.
  Not a compliant sequence of benchmarks for publication.
  Property specjvm.run.checksum.validation must be true for publication.

--- --- --- --- --- --- --- --- ---
  Benchmark:   check
  Run mode:    static run
  Test type:   functional
  Threads:     1
  Iterations:  1
  Run length:  1 operation

Iteration 1 (1 operation) begins: Wed Oct 30 10:22:23 CST 2013
Iteration 1 (1 operation) ends:   Wed Oct 30 10:22:23 CST 2013
Iteration 1 (1 operation) result: PASSED
Valid run!
--- --- --- --- --- --- --- --- ---
  Benchmark:   startup.helloworld
  Run mode:    static run
  Test type:   single
  Threads:     1
  Iterations:  1
  Run length:  1 operation
Iteration 1 (1 operation) begins: Wed Oct 30 10:22:23 CST 2013
Iteration 1 (1 operation) ends:   Wed Oct 30 10:22:23 CST 2013
Iteration 1 (1 operation) result: 413.79 ops/m
Valid run!
Score on startup.helloworld: 413.79 ops/m
Results are stored in: 
/root/SPEC/results/SPECjvm2008.001/SPECjvm2008.001.raw
Generating reports in:
/root/SPEC/results/SPECjvm2008.001

Noncompliant composite result: 413.79 ops/m

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值