Skip to content

Disable CPU pinning when ractor harness is used - #557

Merged
eightbitraptor merged 1 commit into
mainfrom
mvh-ractor-no-pin
Oct 15, 2026
Merged

eightbitraptor merged 1 commit into
mainfrom
mvh-ractor-no-pin

Conversation

@eightbitraptor

Copy link
Copy Markdown
Member

By default ruby-bench pins all benchmarks to a single core using taskset for benchmark consistency.

When the ractor benchmarks are run with --category=ractor or --category=ractor-only, we disable CPU pinning because the purpose of the ractor benchmarks is to test concurrent code.

We weren't disabling CPU pinning when individual benchmarks are being run with --harness=ractor or when running a benchmark whos default harness is the ractor harness.

This PR makes every benchmark that runs with the ractor harness disable CPU pinning.

By default ruby-bench pins all benchmarks to a single core using
taskset for benchmark consistency.

When the ractor benchmarks are run with --category=ractor or
--category=ractor-only, we disable CPU pinning because the purpose of
the ractor benchmarks is to test concurrent code.

We weren't disabling CPU pinning when individual benchmarks are being
run with --harness=ractor or when running a benchmark whos default
harness is the ractor harness.

This PR makes every benchmark that runs with the ractor harness disable
CPU pinning.
@eightbitraptor
eightbitraptor merged commit 33af640 into main Oct 15, 2026
15 checks passed
@eightbitraptor
eightbitraptor deleted the mvh-ractor-no-pin branch October 15, 2026 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants