~/talk

Ways to Parallelize Tests in JavaScript

TalkinRussianat Selenium Camp 2019 · 2019-02-22..02-23· [javascript, testing]
slides:none on file

Compares concrete ways to parallelize JavaScript tests: running one process per test file (fast to adopt with existing runners but causes large memory spikes—e.g. 50 workers use gigabytes); Node worker threads (start ~40ms, faster inter-thread communication and lower memory use, demonstrated by a tundra‑jest runner); Functions-as-a-Service for isolated environments (good isolation but cold-start latency and cloud account concurrency limits ~1000); and V8 Isolates (lowest latency and highest density). Includes measurements and tradeoffs for throughput, memory use, and test reporting.

AI-written summary · about

  1. 0:00Introduction
  2. 1:35Concurrency vs parallelism
  3. 8:21Async in JS tests
  4. 12:16Async for parallel tests
  5. 17:13Parallel by processes
  6. 21:10Pros and cons of process parallelism
  7. 25:50Worker threads vs processes
  8. 30:49Worker threads vs processes
  9. 37:32Testing with FaaS
  10. 43:18Isolating tests
  11. 46:13Performance comparison
  12. 49:29Q&A
  13. 53:10Q&A
~/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.