Bump ai.djl.huggingface:tokenizers from 0.31.1 to 0.36.0 #160
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Benchmark | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'sandbox-benchmarks/**' | |
| - 'sandbox-functional-converter-core/**' | |
| - 'sandbox-ast-api/**' | |
| - '.github/workflows/benchmark.yml' | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - 'sandbox-benchmarks/**' | |
| - 'sandbox-functional-converter-core/**' | |
| - 'sandbox-ast-api/**' | |
| - '.github/workflows/benchmark.yml' | |
| workflow_dispatch: | |
| jobs: | |
| benchmark: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # Required: auto-push benchmark results to gh-pages | |
| deployments: write # Required: create deployment status for benchmark | |
| pull-requests: write # Required: post alert comments on PRs | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Install Parent POM | |
| run: mvn install -N -DskipTests | |
| - name: Build Core Module | |
| working-directory: sandbox-functional-converter-core | |
| run: mvn clean install -DskipTests | |
| - name: Build AST API Module | |
| working-directory: sandbox-ast-api | |
| run: mvn clean install -DskipTests | |
| - name: Build Benchmark Module | |
| working-directory: sandbox-benchmarks | |
| run: mvn clean package | |
| - name: Run Benchmarks | |
| working-directory: sandbox-benchmarks | |
| run: | | |
| java -jar target/benchmarks.jar -rf json -rff target/jmh-result.json | |
| - name: Store Benchmark Results | |
| uses: benchmark-action/github-action-benchmark@v1 | |
| with: | |
| name: JMH Benchmarks | |
| tool: 'jmh' | |
| output-file-path: sandbox-benchmarks/target/jmh-result.json | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| auto-push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
| alert-threshold: '115%' | |
| comment-on-alert: true | |
| fail-on-alert: false | |
| alert-comment-cc-users: '@carstenartur' | |
| - name: Upload Benchmark Results | |
| uses: actions/upload-artifact@v7 | |
| if: always() | |
| with: | |
| name: benchmark-results | |
| path: | | |
| sandbox-benchmarks/target/jmh-result.json | |
| sandbox-benchmarks/target/jmh-result.txt | |
| - name: Report Deployed URL | |
| if: always() | |
| run: | | |
| echo "### 🔗 Deployed Benchmark Results" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "📊 [View Performance Charts](https://carstenartur.github.io/sandbox/dev/bench/)" >> $GITHUB_STEP_SUMMARY |