File tree 3 files changed +7
-3
lines changed
src/com/jwetherell/algorithms/data_structures/timing
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
before_script :
2
+ - export OPTS="-server -Xmx1024m -Xbatch -verbose:gc -XX:CICompilerCount=1 -XX:+PrintCompilation"
3
+ - export JAVA_OPTS="${JAVA_OPTS} ${OPTS}"
4
+ - export ANT_OPTS="${ANT_OPTS} ${OPTS}"
2
5
- echo $JAVA_OPTS
3
- - export JAVA_OPTS="-server -Xmx1024m -Xbatch -verbose:gc -XX:CICompilerCount=1 -XX:+PrintCompilation"
6
+ - echo $ANT_OPTS
4
7
5
8
language : java
6
9
Original file line number Diff line number Diff line change 47
47
48
48
<target name =" build" depends =" init" description =" build the source" >
49
49
<!-- Compile the java code from ${src} into ${build} -->
50
- <javac srcdir =" ${ src } " destdir =" ${ build } " >
50
+ <javac includeantruntime =" false" srcdir =" ${ src } " destdir =" ${ build } " >
51
+ <compilerarg value =" -Xlint:unchecked" />
51
52
<classpath refid =" class.path" />
52
53
</javac >
53
54
</target >
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public class DataStructuresTiming {
36
36
37
37
private static final int NUMBER_OF_TESTS = 3 ;
38
38
private static final Random RANDOM = new Random ();
39
- private static final int ARRAY_SIZE = 100000 ;
39
+ private static final int ARRAY_SIZE = 10000 ;
40
40
private static final int RANDOM_SIZE = 1000 * ARRAY_SIZE ;
41
41
private static final Integer INVALID = RANDOM_SIZE + 10 ;
42
42
private static final DecimalFormat FORMAT = new DecimalFormat ("0.##" );
You can’t perform that action at this time.
0 commit comments