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