Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Sep 28, 2024
1 parent 1d1517d commit e1821d5
Showing 1 changed file with 23 additions and 15 deletions.
38 changes: 23 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,36 @@

## 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).
* React development + refresh is 7x faster than swc and 75x faster than Babel.
* 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. -->
* Compared to swc, oxc transform is 4x faster, uses 20% less memory, and is 35 MB smaller in package size (from swc's 37MB).
* React development + refresh is 6x faster than swc and 70x faster than Babel.
* Compared to babel, oxc transform 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 45x faster on ordinary files, and 20x faster on larger files.


## Transform / Transpile

Oxc is 4x faster than swc, and 40x faster than Babel.

React development + refresh is 7x faster than swc and 75x faster Babel.
React development + refresh is 6x faster than swc and 70x faster Babel.

### GitHub Actions `ubuntu-latest`

```
oxc - src/transform.bench.js > UserSettings.tsx
5.62x faster than swc
69.64x faster than babel
oxc - src/transform.bench.js > parser.ts
4.02x faster than swc
47.41x faster than babel
3.72x faster than swc
54.70x faster than babel
oxc - src/transform.bench.js > renderer.ts
4.09x faster than swc
27.14x faster than babel
3.96x faster than swc
30.35x faster than babel
oxc - src/transform.bench.js > table.tsx
4.63x faster than swc
44.04x faster than babel
4.54x faster than swc
59.54x faster than babel
```

### MacBook Pro M3 Max
Expand Down Expand Up @@ -71,19 +76,22 @@ React development + refresh is 7x faster than swc and 75x faster Babel.

## Isolated Declarations DTS Emit

Oxc is at least 5x faster than `tsc` on small files, and 20x faster on larger files.
Oxc is 45x faster than `tsc` on ordinary files, and 20x faster on larger files.

### GitHub Actions `ubuntu-latest`

```
oxc - src/id.bench.js > UserSettings.tsx
45.05x faster than tsc
oxc - src/id.bench.js > parser.ts
18.00x faster than tsc
20.42x faster than tsc
oxc - src/id.bench.js > renderer.ts
22.37x faster than tsc
21.70x faster than tsc
oxc - src/id.bench.js > table.tsx
8.06x faster than tsc
7.24x faster than tsc
```


Expand Down

0 comments on commit e1821d5

Please sign in to comment.