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
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • bun

    Incredibly fast JavaScript runtime, bundler, test runner, 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:

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • 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:

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

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