Node.js is still way faster than Deno

Newly released Deno 1.9 promises “Rust-like” performance, still outrun by Node.js

There is no incentive swapping to Deno, especially not from Node.js. Node.js has history and is not exactly a performance beast on its own, but it does have strong support for native add-ons. These can seamlessly augment and boost Node.js to heights way above what is possible with Deno.

Above simple bar chart plots the new web I/O performance of Deno 1.9. With this new release, Deno is finally utilizing the Rust-written “Hyper” — a native HTTP server built for speed. This finally brings a big boost over the prior, scripted-and-sluggish, HTTP server built on Deno’s own TypeScript APIs.

However, as we can clearly see the end result is still very poor compared to what we have had with Node.js for many years already. Node.js being a mature platform with good support for fast native add-ons, still outruns Deno 1.9 with ease and big margins.

Further on, in this test we are utilizing a full URL router for the Node.js test case, while the Deno 1.9 case is just a minimal server without any routing whatsoever. One can say that we are inviting Deno 1.9 to score, but all it does is stumble on the ball and fall flat on its face.

The main problem with Deno is that it does exactly the same as Node.js, worse or similarly bad. Both platforms are still mainly the same; V8 and scripting. There is no big incentive for a swap other than pointless hype. The same hype Node.js had many years ago. Your apps and services aren’t going to get “Rust-like performance” with Deno, it’s just complete nonsense.

Guess what? If you want “Rust-like performance” then….. write Rust code? You’re not going to get it with Deno, I can tell you that for sure.

Q&A