-
Notifications
You must be signed in to change notification settings - Fork 161
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 Check vs. Node Streams #304
Comments
Here's a very basic benchmark that I've attempted to make as fair as possible (feedback on how to do better is welcome):https://gist.github.com/trevnorris/4a8b6dd856cf3e1b4268 Part of what you'll see is that V8 native Promises is a significant hit, but also the implementation itself (of course having gone through Babel). |
Yeah, the purpose of the reference implementation is to transliterate the spec directly into JS, and not to be a usable polyfill. In particular a lot of the stuff we're doing around the queue-with-sizes is probably ridiculously unoptimized, not just at a VM level but also on an algorithmic level. Next month I'll likely be working on a V8 extension version of the streams, with a target of maybe having it ship. That one will actually be optimized. And yeah, the V8 promises being slow thing is going to really suck :-/. |
One big performance win will be #97, which is explicitly being designed for. |
Before shipping an implementation and forcing API stagnation / Also, I truly hope we come up with resource finalization before that goes It just seem premature and ignorant to talk about performance being able to On Sat, Mar 21, 2015 at 1:34 AM, Domenic Denicola notifications@github.com
|
Just want to start an issue to track performance concerns vs Node/IO.js streams implementations. I know that streams are currently a major bottleneck in performing IO and would be curious to see if we can make a benchmark and at least ensure we can reach performance parity. Having a nice API is one thing, but if we lose performance doing it we will be in trouble.
The text was updated successfully, but these errors were encountered: