3 ms·
How does it compete with Node.js? The benchmark (req/s) compares Zap with Rust, Go, etc. But I don't see any mention of Node.js.
by corentin88 3y ago
How does it compete with Node.js? The benchmark (req/s) compares Zap with Rust, Go, etc. But I don't see any mention of Node.js.
- giovannibonetti 3y agoNode.js should be way slower, given that JS is an interpreted language and the others aren't.
- jedisct1 3y agoNot really. All modern JS engines, including V8 that Node uses, include excellent JIT compilers. Also, HTTP serving in Node uses code written in C, not JS. That being said, Node is slow compared to Bun: https://bun.sh https://bun.sh
- winrid 3y agoAt the expense of memory usage, predictibility, and worse P99s.