summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2026-01-05 13:33:57 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2026-01-05 13:42:15 -0800
commite7b92abf3ab1a5f1eb6bae74df9ee71cd13a96dd (patch)
tree123d131e81767a13108f53c781f7a3e042dc5a41
parent34aa97ed60a87cad9a4b016cf6393b83bc6b2797 (diff)
ruby-bench: Prefer --excludes over rm -rf
to remind us of skipped benchmarks in the CI job names
-rw-r--r--.github/workflows/ubuntu.yml6
-rw-r--r--.github/workflows/zjit-macos.yml6
-rw-r--r--.github/workflows/zjit-ubuntu.yml6
3 files changed, 12 insertions, 6 deletions
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
index bf34baaced..7cd862c1bf 100644
--- a/.github/workflows/ubuntu.yml
+++ b/.github/workflows/ubuntu.yml
@@ -208,7 +208,7 @@ jobs:
matrix:
include:
# Using the same setup as ZJIT jobs
- - bench_opts: '--warmup=1 --bench=1'
+ - bench_opts: '--warmup=1 --bench=1 --excludes=lobsters'
runs-on: ubuntu-24.04
@@ -242,8 +242,10 @@ jobs:
repository: ruby/ruby-bench
path: ruby-bench
+ # If you want to skip failing benchmark, consider using `--excludes`.
+ # e.g. `bench_opts: '--warmup=1 --bench=1 --excludes=railsbench,lobsters'`
- name: Run ruby-bench
- run: rm -rf benchmarks/lobsters && ruby run_benchmarks.rb -e "ruby::../build/install/bin/ruby" ${{ matrix.bench_opts }}
+ run: ruby run_benchmarks.rb -e "ruby::../build/install/bin/ruby" ${{ matrix.bench_opts }}
working-directory: ruby-bench
- uses: ./.github/actions/slack
diff --git a/.github/workflows/zjit-macos.yml b/.github/workflows/zjit-macos.yml
index 55bfcb30f2..a638907811 100644
--- a/.github/workflows/zjit-macos.yml
+++ b/.github/workflows/zjit-macos.yml
@@ -158,7 +158,7 @@ jobs:
include:
# Test --call-threshold=2 with 2 iterations in total
- ruby_opts: '--zjit-call-threshold=2'
- bench_opts: '--warmup=1 --bench=1'
+ bench_opts: '--warmup=1 --bench=1 --excludes=lobsters'
configure: '--enable-zjit=dev_nodebug' # --enable-zjit=dev is too slow
runs-on: macos-14
@@ -197,8 +197,10 @@ jobs:
repository: ruby/ruby-bench
path: ruby-bench
+ # If you want to skip failing benchmark, consider using `--excludes`.
+ # e.g. `bench_opts: '--warmup=1 --bench=1 --excludes=railsbench,lobsters'`
- name: Run ruby-bench
- run: rm -rf benchmarks/lobsters && ruby run_benchmarks.rb -e "zjit::../build/install/bin/ruby ${{ matrix.ruby_opts }}" ${{ matrix.bench_opts }}
+ run: ruby run_benchmarks.rb -e "zjit::../build/install/bin/ruby ${{ matrix.ruby_opts }}" ${{ matrix.bench_opts }}
working-directory: ruby-bench
- uses: ./.github/actions/slack
diff --git a/.github/workflows/zjit-ubuntu.yml b/.github/workflows/zjit-ubuntu.yml
index 29b7aaad59..02f912fb85 100644
--- a/.github/workflows/zjit-ubuntu.yml
+++ b/.github/workflows/zjit-ubuntu.yml
@@ -215,7 +215,7 @@ jobs:
include:
# Test --call-threshold=2 with 2 iterations in total
- ruby_opts: '--zjit-call-threshold=2'
- bench_opts: '--warmup=1 --bench=1'
+ bench_opts: '--warmup=1 --bench=1 --excludes=lobsters'
configure: '--enable-zjit=dev_nodebug' # --enable-zjit=dev is too slow
runs-on: ubuntu-24.04
@@ -250,8 +250,10 @@ jobs:
repository: ruby/ruby-bench
path: ruby-bench
+ # If you want to skip failing benchmark, consider using `--excludes`.
+ # e.g. `bench_opts: '--warmup=1 --bench=1 --excludes=railsbench,lobsters'`
- name: Run ruby-bench
- run: rm -rf benchmarks/lobsters && ruby run_benchmarks.rb -e "zjit::../build/install/bin/ruby ${{ matrix.ruby_opts }}" ${{ matrix.bench_opts }}
+ run: ruby run_benchmarks.rb -e "zjit::../build/install/bin/ruby ${{ matrix.ruby_opts }}" ${{ matrix.bench_opts }}
working-directory: ruby-bench
- uses: ./.github/actions/slack