ITNEXT

ITNEXT is a platform for IT developers & software engineers to share knowledge, connect, collaborate, learn and experience next-gen technologies.

Follow publication

Member-only story

Deeper testing of Bun’s performance and compatibility against Node.js

David Herron
ITNEXT
Published in
14 min readJul 25, 2022

--

Bun is a new project aiming to be compatible with Node.js, but with huge performance gains. Not even a month into public availability, and people are claiming both the Node.js and Deno projects are dead.

What does it take to “kill” a software platform? People are still using COBOL, for example, and how many predictions have been about the death of Perl, PHP, or Java?

The Bun project makes big claims that it would be compatible with the Node.js platform while giving huge performance benefits. If true, that could easily sway a lot of software engineers to abandon Node.js. But that would take several years to unfold. Node.js is in a strong mature position and the Bun project has a lot of work to do before it could fully supplant Node.js.

But, what will happen when Bun becomes stable and mature enough to run complex applications currently running on Node.js?

What I’m interested in doing is evaluating whether Bun can run my applications as well as Node.js. I’m surely not the only person with those questions.

These claims have caught the attention of a lot of people. I’ve seen on YouTube a bunch of people running simple performance tests then crowing about how these PROVE that Bun is a lot faster than Node.js.

Of course, simple performance tests do not prove very much. As I say later, it’s a fallacy to put a lot of weight on a simple test.

That led me to attempt to run a test of a complex application on Bun. Namely, I’ve developed a static website generator system (AkashaCMS) which I use to build several websites, including techsparx.com and greentransportation.info. AkashaCMS is complex enough to provide a good test scenario. If Bun could successfully run AkashaCMS, with higher performance, that would prove the claims by the Bun team. The idea was sound, but the result was flawed.

I wrote an article under the belief that I’d managed to render my website using Bun (also on Medium), when it seems that instead I was accidentally…

--

--

Published in ITNEXT

ITNEXT is a platform for IT developers & software engineers to share knowledge, connect, collaborate, learn and experience next-gen technologies.

Written by David Herron

Software Engineer and author (Node.js Web Development and more) passionate about Node.js, climate change, EV’s, and clean energy. https://davidherron.com

No responses yet

Write a response