Skip to content

Instantly share code, notes, and snippets.

@patriknw
Created March 9, 2012 11:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save patriknw/2006106 to your computer and use it in GitHub Desktop.
Save patriknw/2006106 to your computer and use it in GitHub Desktop.
Example of sbt launch script for akka benchmarks
#!/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