Skip to content

Benchmarks setup [2] #5

Benchmarks setup [2]

Benchmarks setup [2] #5

Workflow file for this run

name: Benchmarks CI
on:
push:
jobs:
benchmark-local:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest ]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-gradle
- run: >
./gradlew
LocalRequestResponseBenchmark
LocalRequestStreamBenchmark
LocalRequestChannelBenchmark
-Prsocketbuild.skipBenchmarkTasks=true
--no-daemon
- run: >
./gradlew
LocalRequestResponseBenchmark
LocalRequestStreamBenchmark
LocalRequestChannelBenchmark
--no-parallel
--max-workers=1
--no-daemon
--continue
- if: always() && !cancelled()
uses: actions/upload-artifact@v4
with:
name: benchmark-reports-local-${{ matrix.os }}
path: "rsocket-transport-benchmarks/**/build/reports/benchmarks/**/*.csv"
retention-days: 7
benchmark-network:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest ]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-gradle
- run: >
./gradlew
KtorTcpRequestResponseBenchmark
KtorWsRequestResponseBenchmark
NettyTcpRequestResponseBenchmark
NettyQuicRequestResponseBenchmark
-Prsocketbuild.skipBenchmarkTasks=true
--no-daemon
- run: >
./gradlew
KtorTcpRequestResponseBenchmark
KtorWsRequestResponseBenchmark
NettyTcpRequestResponseBenchmark
NettyQuicRequestResponseBenchmark
--no-parallel
--max-workers=1
--no-daemon
--continue
- if: always() && !cancelled()
uses: actions/upload-artifact@v4
with:
name: benchmark-reports-network-${{ matrix.os }}
path: "rsocket-transport-benchmarks/**/build/reports/benchmarks/**/*.csv"
retention-days: 7