Move the methods to prepare the benchmark outputs to the BenchmarkRunner class #1484
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: Test benchmarks | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| schedule: | |
| - cron: "00 15 * * *" | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - ruby: ruby | |
| - ruby: head | |
| - ruby: truffleruby | |
| # TruffleRuby has randomly failed on different benchmarks | |
| continue-on-error: true | |
| if: ${{ github.event_name != 'schedule' || github.repository == 'ruby/ruby-bench' }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| - name: Run tests | |
| run: rake test | |
| - name: Test run_benchmarks.rb | |
| run: ./run_benchmarks.rb | |
| env: | |
| WARMUP_ITRS: '1' | |
| MIN_BENCH_ITRS: '1' | |
| MIN_BENCH_TIME: '0' | |
| continue-on-error: ${{ matrix.continue-on-error || false }} | |
| - name: Test run_benchmarks.rb - Ractors | |
| run: ./run_benchmarks.rb --category=ractor | |
| env: | |
| WARMUP_ITRS: '1' | |
| MIN_BENCH_ITRS: '1' | |
| MIN_BENCH_TIME: '0' | |
| continue-on-error: ${{ matrix.continue-on-error || false }} | |
| - name: Test run_benchmarks.rb - Ractor Only | |
| run: ./run_benchmarks.rb --category=ractor-only | |
| env: | |
| WARMUP_ITRS: '1' | |
| MIN_BENCH_ITRS: '1' | |
| MIN_BENCH_TIME: '0' | |
| continue-on-error: ${{ matrix.continue-on-error || false }} | |
| - name: Test run_benchmarks.rb --graph | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends libmagickwand-dev | |
| ./run_benchmarks.rb --graph fib | |
| if: matrix.ruby == 'ruby' | |
| env: | |
| WARMUP_ITRS: '1' | |
| MIN_BENCH_ITRS: '1' | |
| MIN_BENCH_TIME: '0' | |
| - name: Test run_once.sh | |
| run: ./run_once.sh --yjit-stats benchmarks/railsbench/benchmark.rb | |
| if: matrix.ruby == 'head' |