now it builds the request
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
567f8a8d24
commit
215bb0ed13
@ -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"]
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user