Skip to content
文档
Benchmarks

Benchmarks

These benchmarks are used to evaluate the performance of SWC on every commit, as well as against other libraries like Babel or esbuild. You can view the benchmark source code here (opens in a new tab).

Loading...

Transformations (Parallel)

This is the most important benchmark, since build tool authors will run tasks concurrently. Note the performance of Babel and tsx is indentical for parallel and synchronous benchmarks.

es3

Benchmark

es5

Benchmark

es2015

Benchmark

es2016

Benchmark

es2017

Benchmark

es2018

Benchmark

es2019

Benchmark

es2020

Benchmark

Transformations (Synchronous)

Not as critical as the parallel benchmark.

es3

Benchmark

es5

Benchmark

es2015

Benchmark

es2016

Benchmark

es2017

Benchmark

es2018

Benchmark

es2019

Benchmark

es2020

Benchmark

Transformations (Asynchronous)

This benchmark suite does not use all CPU cores. For SWC, the benchmark stores only one task on the Node.js thread pool at a time.

es3

Benchmark

es5

Benchmark

es2015

Benchmark

es2016

Benchmark

es2017

Benchmark

es2018

Benchmark

es2019

Benchmark

es2020

Benchmark