Skip to content

Commit ec0a069

Browse files
committed
Reduced the random data size in the data structures test
1 parent 9aaf26f commit ec0a069

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.travis.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
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}"
25
- echo $JAVA_OPTS
3-
- export JAVA_OPTS="-server -Xmx1024m -Xbatch -verbose:gc -XX:CICompilerCount=1 -XX:+PrintCompilation"
6+
- echo $ANT_OPTS
47

58
language: java
69

build.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747

4848
<target name="build" depends="init" description="build the source">
4949
<!-- 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"/>
5152
<classpath refid="class.path" />
5253
</javac>
5354
</target>

src/com/jwetherell/algorithms/data_structures/timing/DataStructuresTiming.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class DataStructuresTiming {
3636

3737
private static final int NUMBER_OF_TESTS = 3;
3838
private static final Random RANDOM = new Random();
39-
private static final int ARRAY_SIZE = 100000;
39+
private static final int ARRAY_SIZE = 10000;
4040
private static final int RANDOM_SIZE = 1000 * ARRAY_SIZE;
4141
private static final Integer INVALID = RANDOM_SIZE + 10;
4242
private static final DecimalFormat FORMAT = new DecimalFormat("0.##");

0 commit comments

Comments
 (0)