diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-10-25 16:16:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-25 16:16:13 +0200 |
| commit | a41cd2504f15f3e3e49eb533faca390911cc5110 (patch) | |
| tree | f35e7e5c65e2985cf34ad7689526d5b5c0815230 /buildSrc/src | |
| parent | aa9b32f8cd1467e9718959f400f6777e5d71737d (diff) | |
| parent | fe8cd32c3f79d2a6c898a1c8809792e35440a539 (diff) | |
merge: Address several regressions in simulator
This pull request addresses several regressions that have been introduced in the past few pull requests.
- Fix queue resizing logic
- Change clock resolution from milliseconds to nanoseconds in `OtelClockAdapter`
- Compute energy usage in absence of convergence
- Fix duplicate classpath entries
- Fix release workflow
**Breaking API Changes**
- `OtelClockAdapter` now exports time in nanoseconds as the method contract describes.
Diffstat (limited to 'buildSrc/src')
| -rw-r--r-- | buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts b/buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts index 65608e8f..7d8775c6 100644 --- a/buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts @@ -20,6 +20,7 @@ * SOFTWARE. */ +import me.champeau.jmh.JMHTask import org.jetbrains.kotlin.allopen.gradle.* plugins { @@ -37,4 +38,19 @@ jmh { profilers.add("stack") profilers.add("gc") + + includeTests.set(false) // Do not include tests by default +} + +tasks.named("jmh", JMHTask::class) { + outputs.upToDateWhen { false } // XXX Do not cache the output of this task + + testRuntimeClasspath.setFrom() // XXX Clear test runtime classpath to eliminate duplicate dependencies on classpath +} + +dependencies { + constraints { + val libs = Libs(project) + jmh(libs["commons.math3"]) // XXX Force JMH to use the same commons-math3 version as OpenDC + } } |
