now it builds the request
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-10-22 20:37:08 +02:00
parent 567f8a8d24
commit 215bb0ed13
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
2 changed files with 5 additions and 2 deletions

View File

@ -9,7 +9,7 @@ RUN chown -R $APPLICATION_USER /app
USER $APPLICATION_USER
WORKDIR /app
COPY ./build/libs/birb-integrated-bench.jar /app/birb-integrated-bench.jar
COPY ./wave.wav /app/wave.wav
COPY ./build/libs/birb-integrated-bench.jar /app/birb-integrated-bench.jar
CMD ["java", "-server", "-XX:+UnlockExperimentalVMOptions", "-XX:InitialRAMFraction=2", "-XX:MinRAMFraction=2", "-XX:MaxRAMFraction=2", "-XX:+UseG1GC", "-XX:MaxGCPauseMillis=100", "-XX:+UseStringDeduplication", "-jar", "birb-integrated-bench.jar"]

View File

@ -23,13 +23,16 @@ fun Application.module(testing: Boolean = false) {
val timestamps = LinkedHashMap<Int, Instant>()
val uploaders = LinkedList<Uploader>()
val processResults = ProcessResults()
var currUploader : Uploader
environment.monitor.subscribe(ApplicationStarted) {
GlobalScope.launch {
println("Starting benchmark")
startTime = Instant.now()
while (elapsed < targetTime) {
currIter += 1
uploaders.add(Uploader(currIter))
currUploader = Uploader(currIter)
currUploader.buildRequest()
uploaders.add(currUploader)
currTimeStamp = Instant.now()
elapsed = Duration.between(startTime, currTimeStamp)
}