Skip to content

Commit

Permalink
add tldr
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Sep 26, 2024
1 parent 5fef3cd commit 0da2b52
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Bench Oxc, Swc, and Babel Transformer

tldr: oxc transform is 4x faster than swc, 40x faster than babel, uses less memory, and is much smaller in package size (2MB vs 37MB).
## Summary

* Compared to swc, oxc transformer is 4x faster, uses 20% less memory, and is 35 MB smaller in package size (from swc's 37MB).
* Compared to babel, oxc transformer is 40x faster, uses 70% less memory, and is 19 MB smaller with 168 npm packages less to install.
<!-- * Compared to tsc's isolated declarations dts emit, oxc is x times faster. -->

## Transform / Transpile

Expand Down Expand Up @@ -75,8 +79,8 @@ On `parser.ts` by using `/usr/bin/time -alh node`:
| | Max RSS |
| --- | ------- |
| oxc | 51 MB |
| swc | 67MB |
| babel | 172MB |
| swc | 67 MB |
| babel | 172 MB |

## Package size

Expand Down

0 comments on commit 0da2b52

Please sign in to comment.