MicroBenchmarks

Version 5 by john.rose
on Apr 05, 2008 20:06.

compared with
Current by john.rose
on Apr 18, 2008 14:21.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (1)

View page history

*Rule 6:* Use appropriate tools to read the compiler's mind, and expect to be surprised by the code it produces. [Inspect the code yourself|PrintAssembly] before forming theories about what makes something faster or slower.

*Rule 7:* Reduce noise in your measurements. Run your benchmark on a quiet machine, and run it several times, discarding outliers. Use {{-Xbatch}} to serialize the compiler with the application, and consider setting {{-XX:CICompilerCount=1}} to prevent the compiler from running in parallel with itself.

The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact