File tree 3 files changed +17
-10
lines changed
src/com/jwetherell/algorithms/sorts/timing
3 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 1
1
before_script :
2
2
- echo $JAVA_OPTS
3
- - export JAVA_OPTS="-server -Xmx1024m"
3
+ - export JAVA_OPTS="-server -Xmx1024m -Xbatch -verbose:gc -XX:CICompilerCount=1 -XX:+PrintCompilation "
4
4
5
5
language : java
6
6
Original file line number Diff line number Diff line change 23
23
</fileset >
24
24
</path >
25
25
26
- <target name =" init" depends =" clean" >
26
+ <target name =" echo.env_vars" >
27
+ <property environment =" env_vars" />
28
+ <echo >CLASSPATH='${ env_vars.CLASSPATH } '</echo >
29
+ <echo >JAVA_HOME='${ env_vars.JAVA_HOME } '</echo >
30
+ <echo >JAVA_OPTS='${ env_vars.JAVA_OPTS } '</echo >
31
+ </target >
32
+
33
+ <target name =" clean" >
34
+ <!-- Delete the ${build} and ${dist} directory trees -->
35
+ <delete dir =" ${ build } " />
36
+ <delete dir =" ${ dist } " />
37
+ </target >
38
+
39
+ <target name =" init" depends =" clean, echo.env_vars" >
27
40
<!-- Create the time stamp -->
28
41
<tstamp />
29
42
<!-- Create the build directory structure used by build -->
45
58
</target >
46
59
47
60
<target name =" run_tests" depends =" dist" >
48
- <junit fork = " true " printsummary =" on" haltonfailure =" yes" >
61
+ <junit printsummary =" on" haltonfailure =" yes" >
49
62
<jvmarg value =" -server" />
50
63
<classpath >
51
64
<path refid =" test.class.path" />
117
130
118
131
<target name =" test" depends =" run_tests, run_timing" />
119
132
120
- <target name =" clean" description =" clean up" >
121
- <!-- Delete the ${build} and ${dist} directory trees -->
122
- <delete dir =" ${ build } " />
123
- <delete dir =" ${ dist } " />
124
- </target >
125
-
126
133
</project >
Original file line number Diff line number Diff line change 16
16
public class SortsTiming {
17
17
18
18
private static final DecimalFormat FORMAT = new DecimalFormat ("#.###" );
19
- private static final int SIZE = 10000 ;
19
+ private static final int SIZE = 100000 ;
20
20
21
21
private static final boolean showResult = false ;
22
22
private static final boolean showComparison = true ;
You can’t perform that action at this time.
0 commit comments