tools: reduce test runner timing overhead · nodejs/node@f5edf1c · GitHub
Skip to content

Commit f5edf1c

Browse files
panvaaduh95
authored andcommitted
tools: reduce test runner timing overhead
RunProcess sleeps after polling even when the child has already exited. Skip that sleep, saving up to 100 ms per test. Sort --time results in descending order to display the 20 slowest tests. Signed-off-by: Filip Skokan <panva.ip@gmail.com> Assisted-by: Codex PR-URL: #65980 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: LiviaMedeiros <livia@cirno.name>
1 parent 2bde683 commit f5edf1c

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

‎tools/test.py‎

Lines changed: 6 additions & 5 deletions

0 commit comments

Comments
 (0)