Skip to content

Commit b416fc3

Browse files
committed
CI: add bench.yml
1 parent 146d244 commit b416fc3

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

.github/workflows/bench.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
7+
8+
name: Run Benchmarks
9+
10+
on:
11+
workflow_dispatch:
12+
13+
jobs:
14+
build:
15+
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: read
19+
20+
steps:
21+
- uses: actions/checkout@v5
22+
- name: Set up JDK 25
23+
uses: actions/setup-java@v5
24+
with:
25+
java-version: '25'
26+
distribution: 'temurin'
27+
- name: Bench
28+
run: bash gradlew clean bench

src/test/java/bench/AbstractBench.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ public abstract class AbstractBench {
1212
@Benchmark
1313
@BenchmarkMode(Mode.Throughput)
1414
@OutputTimeUnit(TimeUnit.MILLISECONDS)
15-
@Warmup(iterations = 2, time = 1, timeUnit = TimeUnit.SECONDS)
16-
@Measurement(iterations = 4, time = 1, timeUnit = TimeUnit.SECONDS)
15+
@Warmup(iterations = 2, time = 2, timeUnit = TimeUnit.SECONDS)
16+
@Measurement(iterations = 4, time = 4, timeUnit = TimeUnit.SECONDS)
1717
@Fork(1)
1818
public void run() throws Exception {
1919

0 commit comments

Comments
 (0)