-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance regression in pipe after v0.11.3 on OS X #3475
Comments
is this still an issue in v4, v5 or master? |
You can see v4.2.1 there in the graph – would there have been anything that would've fixed it? Can you reproduce? |
I'm going to investigate this |
Sounds like a duplicate of #3477 (comment) -- @addaleax would you mind checking? |
@Fishrock123 just to be clear – these two issues were spun out because this one is Mac OS X specific. |
Yeah, the symptoms here don’t match that either. This one also looks more fixable, I guess? |
I don't have any reason to believe this was fixed in Node.js 6.x or 8.x, but does anyone want to run a comparison along with the versions already in the graph above so we know for sure? |
This is definitely still an issue btw, the needle's hardly moved since v0.12. The performance of v8.4.0 is only 35% of what it is in v0.10.48. See #3429 for how this chart was generated |
Actually, scratch that – pretty sure this is another case of #1671 If I add So the gap between spawn and stdin is still there (which is what #3429 is about) – but there's no drop in performance between versions if GC is fixed (as I guess is proposed) Closing as a duplicate of #1671 |
(extracted from #3429 because that's specifically about the disparity between stdin and spawn)
This graph shows the performance of
cat file | node readStdin.js
on different node.js versions on OS X 10.11:This was generated from 11 runs of the following program after cat/piping a 1GB file generated with
head -c 1000000000 /dev/zero > file
:Now interestingly, as far as I can tell this seems to be a specifically pipe-related problem, because if the same program is run with
node readStdin.js < file
, no such difference exists:The text was updated successfully, but these errors were encountered: