Worker threads can be much slower than child processes #3012
Unanswered
zackschuster
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Individual tests aside, how long does it take for the total suite to complete? If you run with It strikes me that file access is synchronous. Perhaps it's blocking across threads? I'm not sure how this works internally actually. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While updating
emailjs
toava@4
, i noticed that a certain section of our tests were running far slower using worker threads compared to child processes. the code in question involves transmitting large data streams over an smtp connection & parsing them into objects.with worker threads:
with child processes:
the latter results are consistent with
ava@3
performance. the conversion work is not pushed to the github repo yet.here is the
ava.config,js
:Beta Was this translation helpful? Give feedback.
All reactions