|
|
|
@ -38,7 +38,7 @@ class PerfsInstrumentedUnitTest : RealmInstrumentedUnitTest() { |
|
|
|
realm.commitTransaction() |
|
|
|
realm.commitTransaction() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FakeDataManager.createFakeSessions(2000) {success -> |
|
|
|
FakeDataManager.createFakeSessions(5000) {success -> |
|
|
|
|
|
|
|
|
|
|
|
if (success) { |
|
|
|
if (success) { |
|
|
|
|
|
|
|
|
|
|
|
@ -59,14 +59,19 @@ class PerfsInstrumentedUnitTest : RealmInstrumentedUnitTest() { |
|
|
|
options.displayedStats = listOf(Stat.STANDARD_DEVIATION_BB_PER_100_HANDS, Stat.STANDARD_DEVIATION) |
|
|
|
options.displayedStats = listOf(Stat.STANDARD_DEVIATION_BB_PER_100_HANDS, Stat.STANDARD_DEVIATION) |
|
|
|
|
|
|
|
|
|
|
|
val results: ComputedResults = Calculator.compute(group, options) |
|
|
|
val results: ComputedResults = Calculator.compute(group, options) |
|
|
|
|
|
|
|
|
|
|
|
Timber.d("*** ended in ${System.currentTimeMillis() - start} milliseconds") |
|
|
|
Timber.d("*** ended in ${System.currentTimeMillis() - start} milliseconds") |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
val sum = results.computedStat(Stat.NETRESULT) |
|
|
|
|
|
|
|
Timber.d("*** NET RESULT: ${sum?.value}") |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
val average = results.computedStat(Stat.AVERAGE) |
|
|
|
|
|
|
|
Timber.d("*** AVERAGE: ${average?.value}") |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
val duration = results.computedStat(Stat.DURATION) |
|
|
|
|
|
|
|
Timber.d("*** DURATION: ${duration?.value}") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |