You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a module with iOS & Android and I'd like to benchmark the commonMain code that gets run on both iOS & Android. There's a docu for Kotlin/JVM project, but I can't seem to find the missing pieces to configure the benchmarking for my module, so far I have this:
kotlin {
+ val commonBench by creating {+ dependsOn(commonMain)+ dependencies {+ implementation(libs.kotlinx.benchmark.runtime)+ }+ }++ val androidBench by creating {+ dependsOn(commonBench)+ dependsOn(androidMain)+ }
}
+benchmark {+ targets {+ register("androidBench")+ }+}
When I sync with IntelliJ I am getting:
The following Kotlin source sets were configured but not added to any Kotlin compilation:
* androidBench
* commonBench
You can add a source set to a target's compilation by connecting it with the compilation's default source set using 'dependsOn'.
See https://kotl.in/connecting-source-sets
I've tried a few ways on how to do this in my set up but none worked:
sourceSets {
create("benchmark")
}
I would expect that my use case would work with kotlinx-benchmark which is a multiplatform benchmarking tool.
The text was updated successfully, but these errors were encountered:
I have a module with iOS & Android and I'd like to benchmark the
commonMain
code that gets run on both iOS & Android. There's a docu for Kotlin/JVM project, but I can't seem to find the missing pieces to configure the benchmarking for my module, so far I have this:When I sync with IntelliJ I am getting:
I've tried a few ways on how to do this in my set up but none worked:
sourceSets { create("benchmark") }
I would expect that my use case would work with
kotlinx-benchmark
which is a multiplatform benchmarking tool.The text was updated successfully, but these errors were encountered: