A First Look at Bun: Will It Take Node’s Crown?

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • Scout APM - Truly a developer’s best friend
  • SonarQube - Static code analysis for 29 languages.
  • talent.io - Download talent.io’s Tech Salary Report
  • bun

    Incredibly fast JavaScript runtime, bundler, transpiler and package manager – all in one.

    Being in the beta stage, however, means that Bun still has some quirks:

  • webpack

    A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.

    After removing and re-adding webpack](https://webpack.js.org/) 10 times with each tool, I got the following results:

  • Scout APM

    Truly a developer’s best friend. Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.

  • oha

    Ohayou(おはよう), HTTP load generator, inspired by rakyll/hey with tui animation.

    Bun’s runtime does include a working HTTP server, which presents a benchmarking opportunity to compare with Node and Deno. For the test, I’ll use Bun’s example scripts to drive the tests. I'll generate and measure traffic with oha.

  • hyperfine

    A command-line benchmarking tool

    hyperfine: v1.14.0

  • deno

    A modern runtime for JavaScript and TypeScript.

    Bun is the newest addition to the JavaScript runtime family. It has been making waves that rival those made by Deno when it came out in 2018. Bun sits in the space between Node and Deno. Bun, like Deno, supports TypeScript out of the box and offers developer-friendly features such as top-level awaits and built-in Web APIs. But, unlike Deno, Bun is intended to be a drop-in replacement for Node, Webpack, Babel, Yarn, and PostCSS — all in one neat package.

  • benchmarks-javascript

    Benchmarks comparing Bun, Node, and Deno for different tasks

    You can see the scripts used for each case here: https://github.com/TomFern/benchmarks-javascript

  • semaphore-demo-javascript

    A Semaphore demo CI/CD pipeline using Node.js, TypeScript, Nest.js and React.

    I’ve configured two branches on Semaphore's JavaScript demo project:

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts