This commit is contained in:
		@@ -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
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user