-
-
Save greentornado/767da26467cf94cebc46 to your computer and use it in GitHub Desktop.
Example of sbt launch script for akka benchmarks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Run the benchmark with this as sbt start script, | |
# but change the paths (/home/nordwall) | |
# ~/bin/sbt-benchmark.sh | |
# > project akka-actor-tests | |
# > test-only akka.performance.microbench.TellThroughputPerformanceSpec | |
export JAVA=/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java | |
export FLAGS="-server -Dfile.encoding=UTF8 -XX:+UseNUMA -XX:+UseCondCardMark -XX:-UseBiasedLocking" | |
export HEAP="-Xms1024M -Xmx2048M -Xss1M -XX:MaxPermSize=128m" | |
export GC="-XX:+UseParallelGC" | |
export BENCH="-Dbenchmark.throughput-dispatcher.fork-join-executor.parallelism-min=48 -Dbenchmark.throughput-dispatcher.fork-join-executor.parallelism-max=48 -Dbenchmark.minClients=4 -Dbenchmark.maxClients=48 -Dbenchmark.repeatFactor=5000 -Dbenchmark.throughput-dispatcher.throughput=5 -Dakka.loglevel=INFO -Dbenchmark.longRunning=true -Dbenchmark.resultDir=/home/nordwall/bench" | |
export SBT="-jar /home/nordwall/bin/sbt-launch-0.11.jar" | |
$JAVA $FLAGS $HEAP $GC $BENCH -XX:OnOutOfMemoryError='"kill -9 %p"' $SBT "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment