Re: [streams] rsReader.readBatch(numberOfChunks)? rbsReader.read(view, { waitUntilDone: true })? (#320)

@wanderview For this benchmark that's correct. I used a `while()` for implementation sake, to show making sure all data is read off the internal queue so that `onreadable()` will for sure be called again.

Both V8's microtask and Node's next tick queue can iterate through callbacks in around 100ns per call. So calling the callbacks asynchronously doesn't add much overhead. I created the benchmark to set the performance bar, showing that the native Stream implementation should be able to iterate through chunks of data in no more than 2us per chunk.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/320#issuecomment-92093044

Received on Sunday, 12 April 2015 17:34:29 UTC