Esbuild vs SWC vs Babel Performance Comparison πŸš€

Author: NL Tech
Published At: 2023-06-04T00:00:00
Length: 04:24

Summary

Description

In this video I compare the performance of the two new build tools based on Go and Rust - esbuild and SWC with a traditional Node.js JavaScript compiler - Babel. For the comparison I benchmark the tools by building four open source projects of different sizes and types - the Boostrap JavaScript components, Math.js, Material Design Components and Three.js. The results show that esbuild and SWC outperform Babel significantly, as expected in theory. SWC seems to outperform esbuild with smaller projects which are less than 300kb in size, but as the project size grows esbuild performs a little bit better than SWC in these specific cases. The performance differences between SWC and esbuild are not statistically significant to draw a clear conclusion as to which tool is more performant, but both tools are more performant than the Node.js based Babel.

Contents:

0:00 Introduction

0:21 Methodology

0:37 The Benchmark Projects

1:17 Configuration

1:29 Bootstrap Results

1:38 Math.js Results

2:08 Material Design Results

2:35 Three.js Results

3:00 Conclusion

Social Media:

Email: [email protected]

Twitter: https://twitter.com/nikelaz

LinkedIn: https://www.linkedin.com/in/nikola-lazarov/

#swc #esbuild #babel #performance #comparison

Translated At: 2025-06-07T13:55:15Z

Request translate (One translation is about 5 minutes)

Version 3 (stable)

Optimized for a single speaker. Suitable for knowledge sharing or teaching videos.

Recommended Videos