Ticket 981: Prefixed all properties with benchmark.
This commit is contained in:
parent
33d91577de
commit
07c4028afc
2 changed files with 7 additions and 7 deletions
|
|
@ -27,26 +27,26 @@ trait PerformanceTest extends JUnitSuite {
|
|||
|
||||
def isBenchmark() = System.getProperty("benchmark") == "true"
|
||||
|
||||
def minClients() = System.getProperty("minClients", "1").toInt;
|
||||
def minClients() = System.getProperty("benchmark.minClients", "1").toInt;
|
||||
|
||||
def maxClients() = System.getProperty("maxClients", "40").toInt;
|
||||
def maxClients() = System.getProperty("benchmark.maxClients", "40").toInt;
|
||||
|
||||
def repeatFactor() = {
|
||||
val defaultRepeatFactor = if (isBenchmark) "150" else "2"
|
||||
System.getProperty("repeatFactor", defaultRepeatFactor).toInt
|
||||
System.getProperty("benchmark.repeatFactor", defaultRepeatFactor).toInt
|
||||
}
|
||||
|
||||
def warmupRepeatFactor() = {
|
||||
val defaultRepeatFactor = if (isBenchmark) "200" else "1"
|
||||
System.getProperty("warmupRepeatFactor", defaultRepeatFactor).toInt
|
||||
System.getProperty("benchmark.warmupRepeatFactor", defaultRepeatFactor).toInt
|
||||
}
|
||||
|
||||
def randomSeed() = {
|
||||
System.getProperty("randomSeed", "0").toInt
|
||||
System.getProperty("benchmark.randomSeed", "0").toInt
|
||||
}
|
||||
|
||||
def timeDilation() = {
|
||||
System.getProperty("timeDilation", "1").toLong
|
||||
System.getProperty("benchmark.timeDilation", "1").toLong
|
||||
}
|
||||
|
||||
var stat: DescriptiveStatistics = _
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ abstract class Orderbook(val symbol: String) {
|
|||
|
||||
object Orderbook {
|
||||
|
||||
val useDummyOrderbook = System.getProperty("useDummyOrderbook", "false").toBoolean
|
||||
val useDummyOrderbook = System.getProperty("benchmark.useDummyOrderbook", "false").toBoolean
|
||||
|
||||
def apply(symbol: String, standby: Boolean): Orderbook = standby match {
|
||||
case false if !useDummyOrderbook ⇒ new Orderbook(symbol) with SimpleTradeObserver
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue