I write a simple loop to time a simple operation and HotSpot looks even slower than Java 2 SDK. What am I doing wrong?
• I’m trying to time method invocation time. I don’t want there to be any extra work done, so I’m using an empty method. But when I run with HotSpot I get times that are unbelievably fast. • Okay, so I’ll put some random code in the body of the method so it’s not empty and the inlining can’t just remove it. Here’s my new method • I’m trying to benchmark object allocation and garbage collection. So I have harness… • I have a graphics-intensive or GUI-based program. I’ve tried it on HotSpot and it doesn’t seem to perform much better than the Java 2 SDK, and only slightly better than on JDK1.1.x implementations. Why isn’t HotSpot making my graphics code go faster? • What do you recommend for benchmarking HotSpot, or any virtual machine?
Related Questions
- After having the ultrasonic device a couple of weeks in operation it looks as if there more algae than before. What happened ?
- I write a simple loop to time a simple operation and HotSpot looks even slower than Java 2 SDK. What am I doing wrong?
- Can I write a real-time program on Java RTS that will run without change on another hardware platform?