0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/benchmark/http
isaacs d62cf59dc1 http: Don't hot-path end() for large buffers
The benefits of the hot-path optimization below start to fall off when
the buffer size gets up near 128KB, because the cost of the copy is more
than the cost of the extra write() call.  Switch to the write/end method
at that point.

Heuristics and magic numbers are awful, but slow http responses are
worse.

Fix #4975
2013-03-14 08:04:59 -07:00
..
cluster.js bench: Use wrk for http benchmarking 2013-02-19 17:16:29 -08:00
end-vs-write-end.js http: Don't hot-path end() for large buffers 2013-03-14 08:04:59 -07:00
simple.js bench: Make http easier to profile 2013-02-25 17:47:28 -08:00