Skip to content

Commit

Permalink
Refactor benchmarking
Browse files Browse the repository at this point in the history
  • Loading branch information
mullermp committed Jul 27, 2024
1 parent e33d949 commit e91138b
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 418 deletions.
40 changes: 23 additions & 17 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@ env:
jobs:
benchmark:
runs-on: ubuntu-latest
env:
GH_EVENT: ${{github.event_name}}
GH_REF: ${{github.head_ref}}
GH_REPO: ${{github.repository}}
EXECUTION_ENV: github-action
strategy:
fail-fast: false
matrix:
ruby: ['3.0', 3.1, 3.2, 3.3]
ruby: [jruby-9.4, 3.3]

steps:
- uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v1
with:
Expand All @@ -36,25 +39,28 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- uses: actions/checkout@v4
with:
submodules: recursive

- uses: actions/checkout@v4

- name: Build SDK
run: bundle exec rake codegen:build

- name: Benchmark
run: EXECUTION_ENV=github-action bundle exec rake benchmark:run
- name: Benchmark Gems
run: bundle exec rake benchmark:run

- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v2
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::469596866844:role/aws-sdk-ruby-performance-reporter
role-session-name: benchmark-report
aws-region: us-west-2
role-to-assume: arn:aws:iam::373952703873:role/BenchmarkReporter
role-session-name: benchmark-reporter
aws-region: us-east-1

- name: Archive benchmark report
run: |
GH_REPO=${{github.repository}} GH_REF=${{github.head_ref}} GH_EVENT=${{github.event_name}} bundle exec rake benchmark:archive
- name: Upload benchmark report
run: bundle exec rake benchmark:upload-report

- name: Upload benchmark metrics
run: |
GH_REPO=${{github.repository}} GH_REF=${{github.head_ref}} GH_EVENT=${{github.event_name}} bundle exec rake benchmark:put-metrics
- name: Put benchmark metrics
run: bundle exec rake benchmark:put-metrics
1 change: 1 addition & 0 deletions tasks/benchmark
Submodule benchmark added at 305011
114 changes: 0 additions & 114 deletions tasks/benchmark.rake

This file was deleted.

Loading

0 comments on commit e91138b

Please sign in to comment.