mirror of
https://github.com/corda/corda.git
synced 2025-03-14 16:26:36 +00:00
Dl perftest cordapp measure (#782)
* Added summary logging * Added logging of summary metrics to performance log * Minor arithmetic change * Tweak * Reformatted code
This commit is contained in:
parent
fd2f2eb14a
commit
b3b57ccb19
@ -76,6 +76,10 @@ class LinearStateBatchNotariseFlow(private val notary: Party,
|
||||
measurements += second
|
||||
}
|
||||
}
|
||||
val totalTime = Duration.between(iterationStartTime, serviceHub.clock.instant()).toMillis()
|
||||
val txDurations = measurements.map { Duration.between(it.start, it.end).toMillis() }.sortedDescending()
|
||||
val p95Index = Math.floor(x * 0.05).toInt()
|
||||
logger.info("Notarised $x transactions ($n states/tx) in ${totalTime}ms (avg ${totalTime / x.toDouble()}ms/tx, slowest ${txDurations[0]}ms; 95% < ${txDurations[p95Index]}ms)")
|
||||
progressTracker.currentStep = SENDING_RESULTS
|
||||
return Result(measurements)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user