Benchmarks #6
This file contains 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: Benchmarks | |
on: | |
workflow_dispatch: | |
jobs: | |
jvm-linux-x86: | |
#if: false | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
- name: Setup JDK | |
uses: actions/[email protected] | |
with: | |
java-version: '21' | |
distribution: 'liberica' | |
architecture: x64 | |
- name: Run benchmarks | |
run: ./gradlew jvmBenchmark | |
- name: Copy results | |
run: | | |
REPORTS_DIR=build/reports/benchmarks/main | |
DIR_NAME=$(ls $REPORTS_DIR | head -n1) | |
mkdir -p results | |
ls $REPORTS_DIR/$DIR_NAME/*.json | while read report_json; do arch_name=$(basename $report_json); cp $report_json results/$DIR_NAME-kn-$arch_name; done | |
- name: Publish results | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.TOKEN }} | |
add-paths: results/*.json | |
committer: GitHub <[email protected]> | |
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | |
signoff: false | |
branch: results-${{ github.job }} | |
title: 'Benchmarking report' | |
native-linux-x86: | |
#if: false | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
- name: Setup JDK | |
uses: actions/[email protected] | |
with: | |
java-version: '21' | |
distribution: 'liberica' | |
architecture: x64 | |
- name: Run benchmarks | |
run: ./gradlew linuxX64Benchmark | |
- name: Copy results | |
run: | | |
REPORTS_DIR=build/reports/benchmarks/main | |
DIR_NAME=$(ls $REPORTS_DIR | head -n1) | |
mkdir -p results | |
ls $REPORTS_DIR/$DIR_NAME/*.json | while read report_json; do arch_name=$(basename $report_json); cp $report_json results/$DIR_NAME-kn-$arch_name; done | |
- name: Publish results | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.TOKEN }} | |
add-paths: results/*.json | |
committer: GitHub <[email protected]> | |
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | |
signoff: false | |
branch: results-${{ github.job }} | |
title: 'Benchmarking report' | |
native-macos-x86: | |
#if: false | |
runs-on: macos-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
- name: Setup JDK | |
uses: actions/[email protected] | |
with: | |
java-version: '21' | |
distribution: 'liberica' | |
architecture: x64 | |
- name: Run benchmarks | |
run: ./gradlew macosX64Benchmark | |
- name: Copy results | |
run: | | |
REPORTS_DIR=build/reports/benchmarks/main | |
DIR_NAME=$(ls $REPORTS_DIR | head -n1) | |
mkdir -p results | |
ls $REPORTS_DIR/$DIR_NAME/*.json | while read report_json; do arch_name=$(basename $report_json); cp $report_json results/$DIR_NAME-kn-$arch_name; done | |
- name: Publish results | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.TOKEN }} | |
add-paths: results/*.json | |
committer: GitHub <[email protected]> | |
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | |
signoff: false | |
branch: results-${{ github.job }} | |
title: 'Benchmarking report' | |
native-macos-arm64: | |
#if: false | |
runs-on: macos-14 | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
- name: Setup JDK | |
uses: actions/[email protected] | |
with: | |
java-version: '21' | |
distribution: 'liberica' | |
architecture: arm64 | |
- name: Run benchmarks | |
run: ./gradlew macosArm64Benchmark wasmJsBenchmark jsBenchmark | |
- name: Copy results | |
run: | | |
REPORTS_DIR=build/reports/benchmarks/main | |
DIR_NAME=$(ls $REPORTS_DIR | head -n1) | |
mkdir -p results | |
ls $REPORTS_DIR/$DIR_NAME/*.json | while read report_json; do arch_name=$(basename $report_json); cp $report_json results/$DIR_NAME-kn-$arch_name; done | |
- name: Publish results | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.TOKEN }} | |
add-paths: results/*.json | |
committer: GitHub <[email protected]> | |
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | |
signoff: false | |
branch: results-${{ github.job }} | |
title: 'Benchmarking report' | |
js: | |
#if: false | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
- name: Setup JDK | |
uses: actions/[email protected] | |
with: | |
java-version: '21' | |
distribution: 'liberica' | |
architecture: x64 | |
- name: Run benchmarks | |
run: ./gradlew jsBenchmark | |
- name: Copy results | |
run: | | |
REPORTS_DIR=build/reports/benchmarks/main | |
DIR_NAME=$(ls $REPORTS_DIR | head -n1) | |
mkdir -p results | |
ls $REPORTS_DIR/$DIR_NAME/*.json | while read report_json; do arch_name=$(basename $report_json); cp $report_json results/$DIR_NAME-kn-$arch_name; done | |
- name: Publish results | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.TOKEN }} | |
add-paths: results/*.json | |
committer: GitHub <[email protected]> | |
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | |
signoff: false | |
branch: results-${{ github.job }} | |
title: 'Benchmarking report' | |
wasmJs: | |
#if: false | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
- name: Setup JDK | |
uses: actions/[email protected] | |
with: | |
java-version: '21' | |
distribution: 'liberica' | |
architecture: x64 | |
- name: Run benchmarks | |
run: ./gradlew wasmJsBenchmark | |
- name: Copy results | |
run: | | |
REPORTS_DIR=build/reports/benchmarks/main | |
DIR_NAME=$(ls $REPORTS_DIR | head -n1) | |
mkdir -p results | |
ls $REPORTS_DIR/$DIR_NAME/*.json | while read report_json; do arch_name=$(basename $report_json); cp $report_json results/$DIR_NAME-kn-$arch_name; done | |
- name: Publish results | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.TOKEN }} | |
add-paths: results/*.json | |
committer: GitHub <[email protected]> | |
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | |
signoff: false | |
branch: results-${{ github.job }} | |
title: 'Benchmarking report' |