streams: 5% throughput gain when sending small chunks
authorMatteo Collina <hello@matteocollina.com>
Wed, 16 Dec 2015 08:39:11 +0000 (09:39 +0100)
committerMyles Borins <mborins@us.ibm.com>
Wed, 2 Mar 2016 22:01:11 +0000 (14:01 -0800)
commit89aeab901ac9e34c79be3854f1aa41f2a4fb6888
treefa37232ede8fbfb0026b563158cad5cec90d8d77
parentdef3bb2882962cce0afc545ddff5d671c396bfc3
streams: 5% throughput gain when sending small chunks

Improves the performance when moving small buffers by 5%,
and it adds a benchmark to avoid regression in that area.
In all other cases it is equally performant to current master.

Full performance results available at:
https://gist.github.com/mcollina/717c35ad07d15710b6b9.

PR-URL: https://github.com/nodejs/node/pull/4354
Reviewed-By: James M Snell <jasnell@gmail.com>
benchmark/net/net-c2s-cork.js [new file with mode: 0644]
lib/_stream_writable.js