Our great sponsors
-
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.
-
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: v1.14.0
-
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.
-
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.
Related posts
- Bun - The One Tool for All Your JavaScript/Typescript Project's Needs?
- How QUIC is displacing TCP for speed
- Deno in 2023
- Deno, the next-generation JavaScript runtime
- use rustls-tokio-stream instead of tokio-rustls did not fix Using self-signed certs with TLS WebSockets causes "No response from ping frame." error event after a short period connectivity