PageRenderTime 42ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/ParaBond/pararun.ksh

http://scaly.googlecode.com/
Korn Shell | 51 lines | 33 code | 18 blank | 0 comment | 1 complexity | 89638f52ea505082b69837e8a79e3612 MD5 | raw file
  1. SH=/D/scala-2.9.1.final
  2. PARAH=D:/workspace/parabond
  3. JARS=$PARAH/casbah-commons_2.9.0-1-2.1.5.0.jar
  4. JARS="$JARS;$PARAH/casbah-core_2.9.0-1-2.1.5.0.jar"
  5. JARS="$JARS;$PARAH/casbah-gridfs_2.9.0-1-2.1.5.0.jar"
  6. JARS="$JARS;$PARAH/casbah-query_2.9.0-1-2.1.5.0.jar"
  7. JARS="$JARS;$PARAH/junit-4.9b3.jar"
  8. JARS="$JARS;$PARAH/log4j-over-slf4j-1.6.2.jar"
  9. JARS="$JARS;$PARAH/mongo-2.6.5.jar"
  10. JARS="$JARS;$PARAH/scalaj-collection_2.9.1-1.2.jar"
  11. JARS="$JARS;$PARAH/scalatest-1.6.1.jar"
  12. JARS="$JARS;$PARAH/slf4j-api-1.6.2.jar"
  13. JARS="$JARS;$PARAH/slf4j-simple-1.6.2.jar"
  14. export CLASSPATH="$PARAH/bin;$JARS"
  15. PATH=$SH/bin:$PATH
  16. export JAVA_OPTS
  17. TRIALS="1 2 4 8 16 32 64 128 256 512 1024"
  18. DATE=`date "+%Y-%m-%d"`
  19. HOST=`hostname -s`
  20. TRIALS_OUT=trials-${HOST}-${DATE}.txt
  21. echo $HOST > $TRIALS_OUT
  22. for TR in $TRIALS
  23. do
  24. T0=`date -f "%s"`
  25. JAVA_OPTS=-Dn=$TR
  26. $SH/bin/scala.bat org.junit.runner.JUnitCore scaly.parabond.test.Mr01 | grep class >> $TRIALS_OUT
  27. $SH/bin/scala.bat org.junit.runner.JUnitCore scaly.parabond.test.Mr03 | grep class >> $TRIALS_OUT
  28. $SH/bin/scala.bat org.junit.runner.JUnitCore scaly.parabond.test.NPortfolio00 | grep class >> $TRIALS_OUT
  29. $SH/bin/scala.bat org.junit.runner.JUnitCore scaly.parabond.test.NPortfolio01 | grep class >> $TRIALS_OUT
  30. T1=`date -f "%s"`
  31. DT=`echo $T0 $T1 | awk '{print ($2 - $1)}'`
  32. echo $TR $DT
  33. done