My goal was to protect my source code, not to speed up my program. But naturally I played with it to see how speed was affected.
Some of the parts of my program were improved by the compilation. My UI, which mixes Swing and JOGL, was MUCH faster in some ways--I have a button that toggles simulation and that also switches between sets of OpenGL settings, and after the compilation by JET, I could rattle at this button with hardly any visible delay. With an Eclipse compilation and the standard JRE, popping the button up causes a delay of about half a second. Also, the JET version of the program initialized faster--the Eclipse/JRE version takes about a second to draw all its button icons and lay out the buttons and stuff, but again, under JET there was hardly any delay. And finally, the JET version didn't have to grind at my hard drive to load classes upon their first uses the way the Eclipse/JRE version does. Impressive!
But the parts of my program that most heavily use the CPU were not improved so much, and some of the most important ones were even slowed. And in particular, the time used by JBox2D to simulate seems to have increased by (very roughly) 75%. Some things I've written from scratch, without any major optimization, were also slowed.
Memory usage changed: The JET version of my program churned through memory alarmingly fast, but then would reach some threshold and quietly throw away most of what it had used, only to churn back up again. This made me a little suspicious, but it didn't seem to be hurting anything. (I know it's similar to what Java normally does, but I'm not used to seeing it happen so rapidly!)
All in all, Excelsior JET seems to be an excellent product. It was amazingly easy to use! And it didn't speed up my physics simulation.
I also tried GCJ, but that effort fell apart because GCJ is a mess.
Some of the parts of my program were improved by the compilation. My UI, which mixes Swing and JOGL, was MUCH faster in some ways--I have a button that toggles simulation and that also switches between sets of OpenGL settings, and after the compilation by JET, I could rattle at this button with hardly any visible delay. With an Eclipse compilation and the standard JRE, popping the button up causes a delay of about half a second. Also, the JET version of the program initialized faster--the Eclipse/JRE version takes about a second to draw all its button icons and lay out the buttons and stuff, but again, under JET there was hardly any delay. And finally, the JET version didn't have to grind at my hard drive to load classes upon their first uses the way the Eclipse/JRE version does. Impressive!
But the parts of my program that most heavily use the CPU were not improved so much, and some of the most important ones were even slowed. And in particular, the time used by JBox2D to simulate seems to have increased by (very roughly) 75%. Some things I've written from scratch, without any major optimization, were also slowed.
Memory usage changed: The JET version of my program churned through memory alarmingly fast, but then would reach some threshold and quietly throw away most of what it had used, only to churn back up again. This made me a little suspicious, but it didn't seem to be hurting anything. (I know it's similar to what Java normally does, but I'm not used to seeing it happen so rapidly!)
All in all, Excelsior JET seems to be an excellent product. It was amazingly easy to use! And it didn't speed up my physics simulation.
I also tried GCJ, but that effort fell apart because GCJ is a mess.