Since you use scalatags and scala -js, which are very heavily used compilers, you will have much longer compilation time than usual when changing code that needs to be changed. Some things you can do to mitigate this are upgrading to the latest versions of Play (2.2.2), sbt (0.13.1), and scala (2.10.3), which have all made performance improvements regarding compile time. If you are not using incremental compilation yet, I would suggest doing this (play ~ run or play ~ test-quick). Also check your memory limits (Xmx and MaxPermGen) and use the latest JDK (7 or 8).
Using the latest versions, I was able to get these points:
"play test" assembled the application and tests and completed all tests in 173 seconds
"play run" takes 10 seconds to launch a web application after it has already been compiled
"sbt run" takes 10 seconds to start a web application after it has already been compiled
"sbt test" takes 10-25 seconds
"Game Test" takes 10-17 seconds
"sbt compile" takes ~ 20 seconds after cleaning
These times were achieved on a Macbook Pro Retina with SBT_OPTS = "- Xmx2048m" in .sbtconfig
Jason pearson
source share