bench: use res.end() for chunked encoding
authorBen Noordhuis <info@bnoordhuis.nl>
Wed, 19 Dec 2012 13:09:10 +0000 (14:09 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Thu, 20 Dec 2012 10:44:10 +0000 (11:44 +0100)
commitba407ce4106635949fcd5fdeced255d543ab1079
tree77041804be16dbefff977313096efc08f9a15ff4
parent04adf0e5a1e5f245c5b26c87bdce1648efb799f1
bench: use res.end() for chunked encoding

Use res.end() for the final chunk so we can benchmark the 'hot path' shortcut
in lib/http.js that packs the headers and the body into a single packet.
benchmark/http_simple.js
benchmark/http_simple_auto.js