Commit f8dd3556

f8dd3556c646Merged

Yukihiro "Matz" Matsumoto <[email protected]> · 6 months ago · 1 file · ~1 modified

Description

ci: pass -j to make test now that test target is parallel-safe

PR #206 split the test suite into one Make target per .rb file with per-test temp dirs, so make -j N test runs cc invocations concurrently. Without -j make stays sequential; this just turns the parallelism on in CI.

Local Linux measurement: 46.6s sequential → 4.0s with -j24 (11x speedup, ~50% efficiency at 24 cores). Windows expected to land somewhere around 2-3x because of filesystem contention.

Co-Authored-By: Claude Opus 4.7 (1M context) [email protected]

Details

Commit
f8dd3556c646
Parent
81a19c22e328

.github/workflows/ci.ymlmodifiedView file

@@ -47,7 +47,8 @@
4747 # OPT=-O0 cuts cc time per test (each .rb compiles its own
4848 # generated C with $(CFLAGS) -Werror). Type-checking still
4949 # happens; we just skip the optimizer.
50- run: make test OPT=-O0
50+ # -j$(...) overlaps the per-test cc invocations.
51+ run: make -j$(getconf _NPROCESSORS_ONLN) test OPT=-O0
5152
5253 windows-mingw:
5354 name: windows-mingw
@@ -91,4 +92,4 @@
9192 run: make -j$(nproc) LTO=0 all
9293
9394 - name: Run tests
94- run: make test OPT=-O0
95+ run: make -j$(nproc) test OPT=-O0