|
1 | | -name: jmh/benchmark-binary-tree |
| 1 | +name: native-image/benchmark/jmh/binary-tree |
2 | 2 | on: |
3 | 3 | push: |
4 | 4 | paths: |
5 | | - - 'jmh/benchmark-binary-tree/**' |
6 | | - - '.github/workflows/jmh-binary-tree.yml' |
| 5 | + - 'native-image/benchmark/jmh/binary-tree/**' |
| 6 | + - '.github/workflows/native-image-jmh-binary-tree.yml' |
7 | 7 | pull_request: |
8 | 8 | paths: |
9 | | - - 'jmh/benchmark-binary-tree/**' |
10 | | - - '.github/workflows/jmh-binary-tree.yml' |
| 9 | + - 'native-image/benchmark/jmh/binary-tree/**' |
| 10 | + - '.github/workflows/native-image-jmh-binary-tree.yml' |
11 | 11 | schedule: |
12 | 12 | - cron: "0 0 1 * *" # run every month |
13 | 13 | workflow_dispatch: |
14 | 14 | permissions: |
15 | 15 | contents: read |
16 | 16 | jobs: |
17 | 17 | build: |
18 | | - name: GraalVM Binary Tree Benchmark |
| 18 | + name: JMH Binary Tree Benchmark |
19 | 19 | runs-on: ubuntu-latest |
20 | 20 | timeout-minutes: 45 |
| 21 | + strategy: |
| 22 | + matrix: |
| 23 | + java-version: ['21', '24-ea'] |
21 | 24 | steps: |
22 | 25 | - uses: actions/checkout@v4 |
23 | 26 | - uses: graalvm/setup-graalvm@v1 |
24 | 27 | with: |
25 | | - java-version: '21.0.2' |
| 28 | + java-version: ${{ matrix.java-version }} |
26 | 29 | distribution: 'graalvm' |
27 | 30 | github-token: ${{ secrets.GITHUB_TOKEN }} |
28 | 31 | - name: Build and Test Java Code |
29 | 32 | run: | |
30 | | - cd jmh/benchmark-binary-tree |
31 | | - # build the Java code |
| 33 | + cd native-image/benchmark/jmh/binary-tree |
| 34 | + # Build the Java code |
32 | 35 | ./mvnw --no-transfer-progress clean package |
33 | | - # build the native exe |
| 36 | + # Build the native executable |
34 | 37 | ./mvnw --no-transfer-progress -Pnative -DskipNativeTests package |
35 | 38 | # Could just replace with a check that the binary exists? |
36 | 39 | ./target/benchmark-binary-tree |
37 | | - # build and run the instrumented native exe |
| 40 | + # Build and run the instrumented native executable |
38 | 41 | ./mvnw --no-transfer-progress -Pinstrumented -DskipNativeTests package |
39 | 42 | ./target/benchmark-binary-tree-instr |
40 | | - # build and run the optimised native exe |
| 43 | + # Build and run the optimized native executable |
41 | 44 | ./mvnw --no-transfer-progress -Poptimised -DskipNativeTests package |
42 | 45 | ./target/benchmark-binary-tree-opt |
0 commit comments