开发者

Help me create JojoMips algorithm, the BogoMips for Java VMs

I would like to test the speed of different Java platforms and thought about creating a JojoMips benchmark routine that would work like the Linux BogoMips. It would do a calculation and would provide a number like: 4346 JojoMips. The faster the virtual machine, the higher the JojoMips. I thought counting how man开发者_如何学运维y decimals of PI a vm could calculate in 1 seconds.

Any input / code / ideas and remarks would be appreciate.

Thank you. Daniel


You should probably make sure to exercise most or all of the JVM bytecode operations. http://en.wikipedia.org/wiki/List_of_Java_bytecode_instructions

Otherwise your measurement will be incomplete.


BogoMips is not a benchmark. It's simply a constant used to perform spinloops of a specified duration.

What you're talking about (calculating digits of pi) is more analogous to SPEC INT or FP benchmarks; there's certainly nothing wrong rolling your own, but there's already a SPEC JVM benchmark.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜