Skip to content

Commit 76097b4

Browse files
committed
Execute smaller subset of benchmarks on PR
1 parent 51c63c2 commit 76097b4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/benchmark.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ on:
3939

4040
env:
4141
REPORT_FORMAT: ${{ (github.event_name == 'push' || github.event_name == 'pull_request' ) && 'json' || 'csv' }}
42+
MAIN_BENCHMARK_TASK: ${{ github.event.pull_request.number && 'prValidationBenchmark' || 'benchmark' }}
4243

4344
concurrency:
4445
cancel-in-progress: true
@@ -89,7 +90,7 @@ jobs:
8990
gradle-version: wrapper
9091
- name: Run benchmarks
9192
run: >
92-
./gradlew --no-daemon :benchmark:benchmark ${{ matrix.additional-task }}
93+
./gradlew --no-daemon :benchmark:${{ env.MAIN_BENCHMARK_TASK }} ${{ matrix.additional-task }}
9394
-Pbenchmark_warmups=${{ inputs.warmups }}
9495
-Pbenchmark_iterations=${{ inputs.iterations }}
9596
-Pbenchmark_iteration_time=${{ inputs.iteration-time }}

benchmark/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ benchmark {
6262
getByName("main") {
6363
include(".*Common.*Bench.*")
6464
}
65+
create("prValidation") {
66+
include(".*CommonAvgTimeBench.*")
67+
}
6568
create("comparison") {
6669
include(".*Comparison.*Benchmark.*")
6770
}

0 commit comments

Comments
 (0)