]> source.dussan.org Git - jgit.git/commit
Wait for JIT optimization before measuring diff performance 49/1449/4
authorMatthias Sohn <matthias.sohn@sap.com>
Sun, 29 Aug 2010 21:41:10 +0000 (23:41 +0200)
committerChris Aniszczyk <caniszczyk@gmail.com>
Mon, 30 Aug 2010 20:56:52 +0000 (15:56 -0500)
commitfb1c7b136f27abc234b8d71dce2160ad4467341b
treee0b5f2ecc1f760c6b33479cf17d311af3d39b284
parente9c5ec5545e0ebfe07ea5cfb73e2567a61046586
Wait for JIT optimization before measuring diff performance

On Mac OS X MyerDiffPerformanceTest was failing since during the
first few tests the JIT compiler is running in parallel slowing down
the tests. When setting the JVM option -Xbatch forcing the JIT to do
its work prior to running the code this effect can be avoided. Instead
we chose to run some tests without recording prior to the recorded
tests since relying on -X JVM parameters isn't portable across JVMs.

Use 10k * powers of 2 as sample size instead of odd numbers used
before and also improve formatting of performance readings.

Bug: 323766
Change-Id: I9a46d73f81a785f399d3cf5a90c8c0516526e048
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/MyersDiffPerformanceTest.java