Skip to content

Commit

Permalink
add transform
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Sep 3, 2024
1 parent c222ba1 commit 709b3f6
Show file tree
Hide file tree
Showing 4 changed files with 362 additions and 193 deletions.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Bench Transformer

## Transformer

### MacBook Pro M3 Max

```
✓ src/transformer.bench.js (2) 1280ms
✓ typescript.ts (2) 1278ms
name hz min max mean p75 p99 p995 p999 rme samples
· oxc.transform 206.73 4.6710 5.3937 4.8372 4.8827 5.2200 5.3937 5.3937 ±0.48% 104 fastest
· swc.transform 54.7220 17.5129 19.4141 18.2742 18.8245 19.4141 19.4141 19.4141 ±1.22% 28
oxc.transform - src/transformer.bench.js > typescript.ts
3.78x faster than swc.transform
```

## Isolated Declarations

### Mac mini M2
Expand Down Expand Up @@ -32,7 +47,7 @@
29.14x faster than typescript.transpileDeclaration
```

### MacBook Pro Apple M3 Max
### MacBook Pro M3 Max

Oxc is at least 20 times faster than tsc.

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"bench": "vitest bench --run"
},
"devDependencies": {
"@swc/core": "^1.7.23",
"oxc-transform": "^0.17.2",
"typescript": "^5.5.3",
"vitest": "^2.0.0"
"typescript": "^5.5.4",
"vitest": "^2.0.5"
},
"packageManager": "pnpm@9.5.0"
}
Loading

0 comments on commit 709b3f6

Please sign in to comment.