~/talk

Parallel testing with Ractors - Putting CPU's to work

Talkat RubyConf 2021 · 2021-11-08..11-10· [ruby, testing]
slides:none on file

Builds a mini test framework called Loop that runs examples via Ruby 3 Ractors and via traditional process mode and measures wall time: Ractors beat processes on small suites because forking costs dominate, but converge on realistic suites. Reports concrete limitations — class variables and runtime-defined methods aren’t visible across Ractors, metaprogramming must be constrained, and application code must be Ractor-compatible. Finds real Ruby bugs (segfaults and a deadlock), fixes one, and shows the reactor approach works but remains experimental.

AI-written summary · about

  1. 0:00Introduction
  2. 1:13What are tests
  3. 4:48How Rails works
  4. 6:07How Ractors work
  5. 10:55Keeping track of test classes
  6. 17:17Building an executable
  7. 18:10Parallelizing tests
  8. 19:25Multiple reporters
  9. 25:12Bugs
~/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.