more printing
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-10-22 20:56:35 +02:00
parent c0066bb414
commit 2eaa6de91f
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

@ -26,7 +26,7 @@ fun Application.module(testing: Boolean = false) {
var currUploader: Uploader var currUploader: Uploader
environment.monitor.subscribe(ApplicationStarted) { environment.monitor.subscribe(ApplicationStarted) {
GlobalScope.launch { GlobalScope.launch {
println("Starting benchmark") println("Starting benchmark setup")
startTime = Instant.now() startTime = Instant.now()
while (elapsed < targetTime) { while (elapsed < targetTime) {
currIter += 1 currIter += 1
@ -37,9 +37,11 @@ fun Application.module(testing: Boolean = false) {
currTimeStamp = Instant.now() currTimeStamp = Instant.now()
elapsed = Duration.between(startTime, currTimeStamp) elapsed = Duration.between(startTime, currTimeStamp)
} }
println("Starting benchmark")
for (uploader in uploaders) { for (uploader in uploaders) {
uploader.sendRequest() uploader.sendRequest()
} }
println("Data scrubbing")
for (uploader in uploaders) { for (uploader in uploaders) {
timestamps[uploader.currIteration] = uploader.respInstant timestamps[uploader.currIteration] = uploader.respInstant
} }