bashunit
bashunit copied to clipboard
Performance Optimization (Reduce Forking)
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-forkto run tests in the same shell context. - Profile execution with
timeand 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.