Skip to content

Commit

Permalink
Update JVM toolchain to 17 and improve benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerbrandl committed Nov 9, 2024
1 parent 550f7dd commit b11ec1b
Show file tree
Hide file tree
Showing 10 changed files with 49 additions and 29 deletions.
16 changes: 0 additions & 16 deletions .idea/codeStyles/Project.xml

This file was deleted.

5 changes: 0 additions & 5 deletions .idea/codeStyles/codeStyleConfig.xml

This file was deleted.

4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dependencies {
api("io.github.oshai:kotlin-logging-jvm:6.0.9")

// api("org.jetbrains.kotlinx:dataframe-core:0.14.1")
api("com.github.holgerbrandl:kdfutils:1.4.3")
api("com.github.holgerbrandl:kdfutils:1.4.5")

implementation("com.google.code.gson:gson:2.10.1")
// implementation("org.jetbrains.kotlin:kotlin-reflect:2.0.21")
Expand Down Expand Up @@ -82,7 +82,7 @@ compileKotlin.compilerOptions {


kotlin {
jvmToolchain(11)
jvmToolchain(17)
}


Expand Down
2 changes: 1 addition & 1 deletion modules/animation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -166,5 +166,5 @@ signing {
}

kotlin {
jvmToolchain(11)
jvmToolchain(17)
}
3 changes: 3 additions & 0 deletions modules/benchmarks/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
out
build
.gradle
out
build
.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,44 @@ open class ERBenchmark {
}


@State(Scope.Benchmark)
@Fork(1)
@Warmup(iterations = 2)
@Measurement(iterations = 5)
@OutputTimeUnit(TimeUnit.SECONDS)
@BenchmarkMode(Mode.AverageTime)
open class ERLoggingBenchmark {

// var value: Double = 0.0
//
// @Setup
// fun setUp(): Unit {
// value = 3.0
// }


@State(Scope.Benchmark)
open class ExecutionPlan {

// @Param("10", "20","30")
// var numFloors =

lateinit var sim: EmergencyRoom

@Setup(Level.Invocation)
fun setUp() {
sim = EmergencyRoom()
}
}

@Benchmark
fun measureER(execPlan: ExecutionPlan) {
execPlan.sim.run(30.days)
}

}


@State(Scope.Benchmark)
@Fork(1)
@Warmup(iterations = 2)
Expand Down
4 changes: 2 additions & 2 deletions modules/kravis/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repositories {
dependencies {
api(project(":"))

api("com.github.holgerbrandl:kravis:1.0.1")
api("com.github.holgerbrandl:kravis:1.0.2")

testImplementation(kotlin("test"))
}
Expand Down Expand Up @@ -73,5 +73,5 @@ signing {
}

kotlin {
jvmToolchain(11)
jvmToolchain(17)
}
2 changes: 1 addition & 1 deletion modules/letsplot/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,5 @@ signing {
}

kotlin {
jvmToolchain(11)
jvmToolchain(17)
}
2 changes: 1 addition & 1 deletion modules/logistics/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,5 @@ signing {
}

kotlin {
jvmToolchain(11)
jvmToolchain(17)
}
2 changes: 1 addition & 1 deletion modules/notebook/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ signing {
}

kotlin {
jvmToolchain(11)
jvmToolchain(17)
}

0 comments on commit b11ec1b

Please sign in to comment.