Skip to content

Commit

Permalink
Use CMS in immutable perf test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeb01 committed Dec 3, 2013
1 parent 3bbf2b9 commit fab58c3
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions runme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,18 @@

rm *-gc.log

ARGS="$JAVA_HOME/bin/java -mx128m"
GCARGS="-verbose:gc -XX:+PrintGCDateStamps -XX:+PrintGCApplicationStoppedTime -XX:+UseParNewGC -XX:+UseConcMarkSweepGC"
CPATH="-cp build/classes/main:build/classes/perf:templib/*.jar"

echo "Running Simple..."
time $JAVA_HOME/bin/java -mx128m -Xloggc:simple-gc.log \
-verbose:gc \
-XX:+PrintGCDateStamps \
-XX:+PrintGCApplicationStoppedTime \
-cp "build/classes/main:build/classes/perf:templib/*.jar" \
com.lmax.disruptor.immutable.SimplePerformanceTest
time $ARGS $GCARGS -Xloggc:simple-gc.log $CPATH com.lmax.disruptor.immutable.SimplePerformanceTest
echo "Done"

grep 'stopped:' simple-gc.log | sed 's/.*stopped: \([0-9.]*\) seconds/\1/' | sort -n | awk '{ printf "%1.3f\n", $1 }' | (echo " Count Millis" ; uniq -c )

echo "Running Custom..."
time $JAVA_HOME/bin/java -mx128m -Xloggc:custom-gc.log \
-verbose:gc \
-XX:+PrintGCDateStamps \
-XX:+PrintGCApplicationStoppedTime \
-cp "build/classes/main:build/classes/perf:templib/*.jar" \
com.lmax.disruptor.immutable.CustomPerformanceTest
time $ARGS $GCARGS -Xloggc:custom-gc.log $CPATH com.lmax.disruptor.immutable.CustomPerformanceTest
echo "Done"

grep 'stopped:' custom-gc.log | sed 's/.*stopped: \([0-9.]*\) seconds/\1/' | sort -n | awk '{ printf "%1.3f\n", $1 }' | (echo " Count Millis" ; uniq -c )
Expand Down

0 comments on commit fab58c3

Please sign in to comment.