bashunit icon indicating copy to clipboard operation
bashunit copied to clipboard

Performance Optimization (Reduce Forking)

Open Chemaclass opened this issue 4 months ago • 0 comments

Goal: Speed up test execution by minimizing process forking.

Ideas to explore:

  • Investigate if tests are being unnecessarily run in subshells.
  • Introduce an option like --no-fork to run tests in the same shell context.
  • Profile execution with time and compare forked vs non-forked.

Output:

  • When run with --no-fork, tests should complete faster with same results.
  • Include a warning that disabling forking may affect isolation between tests.

Chemaclass avatar Jul 27 '25 19:07 Chemaclass