~/talk

Portable and Fast - How to implement a parallel test runner

Talkat RubyKaigi 2026 · 2026-04-22..04-24· [testing, ruby]
links:none on file
slides:none on file

Implements a multiprocess test runner using spawn over fork for Windows portability, falling back to TCP sockets on Windows and pipes elsewhere; uses Marshal.dump with custom marshal_dump/marshal_load and Base64-named constants to serialize test cases, and IO.select to multiplex real-time results. Runs workers in a pull-style producer/consumer model with bulk handoff at the test-case level to reduce setup/teardown overhead. Achieves 8s parallel vs 27s sequential on a 4-core demo, Thread and multiprocess runners released, Ractor runner in progress.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 4:51Challenges of parallel execution
  3. 12:37Solutions for portability and speed
  4. 23:27Backward compatibility design
  5. 24:51Load balancing strategies
  6. 28:41Demo of parallel test runner
  7. 29:47Future work with Ractor
  8. 30:29Acknowledgments and closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.