3 ms·
Great news! Node.js could greatly benefit from more reimplementations of its native modules. I had implemented the `fs.readdir` module in C and saw some good pe
by kenOfYugen 11y ago
Great news! Node.js could greatly benefit from more reimplementations of its native modules. I had implemented the `fs.readdir` module in C and saw some good performance gains (it was a hackish experiment I did some time ago and can't remember numbers).
The `http` module is said to be outperformed by `eshttp` [1] by a factor of 2 times, which is written in pure JavaScript.
There is also `node-lwan` [2], an experiment in using `lwan` [3] in place of the built in `http` module. Since its the most performant web server in JSON serialization, according to techempower.com benchmarks [4], performance gains are to be expected.
[1] https://github.com/iefserge/eshttp https://github.com/iefserge/eshttp
[2] https://github.com/raadad/node-lwan https://github.com/raadad/node-lwan
[3] http://lwan.ws/ http://lwan.ws/
[4] https://www.techempower.com/benchmarks/#section=data-r12&hw=peak&test=json https://www.techempower.com/benchmarks/#section=data-r12&hw=...