diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-04-21 17:00:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-21 17:00:09 +0200 |
| commit | 10dfc257de65cbbd1e25d1d7f5833bfb687d85ed (patch) | |
| tree | 48b102c4d45b366abd8d0d368c31d6c0596ac30f /simulator/buildSrc/src | |
| parent | b4d1289bbd9539c041e8aeb39bb8962628399809 (diff) | |
| parent | 62678b2890a7f3640836b99ca2fec9efd7485929 (diff) | |
simulator: Introduce SimulationCoroutineDispatcher (#120)
This change introduces the SimulationCoroutineDispatcher implementation which replaces the TestCoroutineDispatcher for running single-threaded simulations.
Diffstat (limited to 'simulator/buildSrc/src')
| -rw-r--r-- | simulator/buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/simulator/buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts b/simulator/buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts index d3bb886d..8623e8da 100644 --- a/simulator/buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts +++ b/simulator/buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts @@ -55,6 +55,13 @@ benchmark { } } +// Workaround for https://github.com/Kotlin/kotlinx-benchmark/issues/39 +afterEvaluate { + tasks.named<org.gradle.jvm.tasks.Jar>("jmhBenchmarkJar") { + duplicatesStrategy = DuplicatesStrategy.EXCLUDE + } +} + dependencies { implementation("org.jetbrains.kotlinx:kotlinx-benchmark-runtime-jvm:0.3.0") } |
