-XX:+AggressiveOpts improves another 5-10%.

EscapeAnalysis seems more important than BiasedLocking.

I don't have a disassembling module installed. Could someone use the
PrintAssembly option and put the asm for the JITed method somewhere. 

It could be interesting to see it side by side with the java one...

Best,

Nicolas.

On Wed, 2009-08-12 at 17:18 -0400, Aaron Cohen wrote:
> On Wed, Aug 12, 2009 at 4:49 PM, Aaron Cohen<remled...@gmail.com> wrote:
> > I'm getting a very significant performance improvement by adding a
> > couple of JVM parameters (using jdk 1.6.0_14).  They are:
> > -XX:+DoEscapeAnalysis
> > -XX:+UseBiasedLocking (I think the -server flag is required for those
> > two flags to do anything).
> >
> > My runtime with n = 5,000,000 goes from ~7.5 seconds to ~4.5 seconds.
> >
> > I can't currently check whether the java code gets the same
> > performance boost, but it's possible and even likely that the clojure
> > version would see a better improvement from those parameters than the
> > java one.
> >
> 
> I actually just confirmed that, on my computer at least, those flags
> have basically no effect on the java version and a big difference on
> the clojure one.
> 
> > 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to