Skip to content

Commit e867a0c

Browse files
committed
Correct options to work on windows
1 parent cd868c5 commit e867a0c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/platform-benchmark.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
- name: Run benchmarks
5959
run: >
6060
./gradlew --no-daemon --info :benchmark:benchmark ${{ inputs.additional-task }}
61-
-Pbenchmark.warmups=${{ inputs.warmups }}
62-
-Pbenchmark.iterations=${{ inputs.iterations }}
63-
-Pbenchmark.iteration_time=${{ inputs.iteration-time }}
64-
-Pbenchmark.iteration_time_unit=${{ inputs.iteration-time-unit }}
61+
-Pbenchmark_warmups=${{ inputs.warmups }}
62+
-Pbenchmark_iterations=${{ inputs.iterations }}
63+
-Pbenchmark_iteration_time=${{ inputs.iteration-time }}
64+
-Pbenchmark_iteration_time_unit=${{ inputs.iteration-time-unit }}

benchmark/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ fun Any?.takeIfNotBlank(): String? = this?.toString()?.takeUnless(String::isBlan
5656
benchmark {
5757
configurations {
5858
getByName("main") {
59-
warmups = properties["benchmark.warmups"]?.takeIfNotBlank()?.toInt() ?: 5
60-
iterations = properties["benchmark.iterations"]?.takeIfNotBlank()?.toInt() ?: 10
61-
iterationTime = properties["benchmark.iteration_time"]?.takeIfNotBlank()?.toLong() ?: 1L
62-
iterationTimeUnit = properties["benchmark.iteration_time_unit"]?.takeIfNotBlank() ?: "s"
59+
warmups = properties["benchmark_warmups"]?.takeIfNotBlank()?.toInt() ?: 5
60+
iterations = properties["benchmark_iterations"]?.takeIfNotBlank()?.toInt() ?: 10
61+
iterationTime = properties["benchmark_iteration_time"]?.takeIfNotBlank()?.toLong() ?: 1L
62+
iterationTimeUnit = properties["benchmark_iteration_time_unit"]?.takeIfNotBlank() ?: "s"
6363
param("objectPath", "$projectDir/data/openapi.json")
6464
param("schemaPath", "$projectDir/data/schemas/openapi_schema.json")
6565
}

0 commit comments

Comments
 (0)