@@ -6,7 +6,7 @@ The purpose of this benchmark is for people who wants to evaluate and compare th
6
6
7
7
The benchmark measures the whole parse -> transform -> codegen pipeline as a real-word scenario.
8
8
9
- The numbers indicate that Oxc is at least 2 times faster than Swc.
9
+ The numbers indicate that Oxc is at least 3 times faster than Swc.
10
10
11
11
## Results
12
12
@@ -19,41 +19,21 @@ The numbers indicate that Oxc is at least 2 times faster than Swc.
19
19
20
20
Codspeed measures performance by cpu instructions.
21
21
22
- ### Mac mini M2 8 cores
22
+ ### Target lowering to es2015
23
23
24
24
### cal.com.tsx
25
-
26
- | | oxc | swc |
27
- | ------------- | ----------------- | ----------------- |
28
- | no-drop | ` 14.4 ms ` (1.00x) | ` 31.5 ms ` (2.20x) |
29
- | parallel | ` 26.9 ms ` (1.00x) | ` 69.4 ms ` (2.59x) |
30
- | single-thread | ` 14.4 ms ` (1.00x) | ` 32.3 ms ` (2.25x) |
25
+ | | oxc | swc |
26
+ | ------------- | ----------------- | ------------------ |
27
+ | no-drop | ` 12.8 ms ` (1.00x) | ` 44.5 ms ` (3.46x) |
28
+ | parallel | ` 22.8 ms ` (1.00x) | ` 117.4 ms ` (5.14x) |
29
+ | single-thread | ` 12.3 ms ` (1.00x) | ` 44.6 ms ` (3.63x) |
31
30
32
31
### typescript.js
33
-
34
- | | oxc | swc |
35
- | ------------- | ------------------ | ------------------ |
36
- | no-drop | ` 106.7 ms ` (1.00x) | ` 213.8 ms ` (2.00x) |
37
- | parallel | ` 195.8 ms ` (1.00x) | ` 437.2 ms ` (2.23x) |
38
- | single-thread | ` 106.0 ms ` (1.00x) | ` 221.7 ms ` (2.09x) |
39
-
40
- ### MacBook Pro M3 Max
41
-
42
- #### cal.com.tsx
43
-
44
- | | oxc | swc |
45
- | ------------- | ----------------- | ----------------- |
46
- | no-drop | ` 12.4 ms ` (1.00x) | ` 31.1 ms ` (2.50x) |
47
- | parallel | ` 21.5 ms ` (1.00x) | ` 58.2 ms ` (2.70x) |
48
- | single-thread | ` 12.4 ms ` (1.00x) | ` 32.1 ms ` (2.59x) |
49
-
50
- #### typescript.js
51
-
52
32
| | oxc | swc |
53
33
| ------------- | ------------------ | ------------------ |
54
- | no-drop | ` 95.5 ms` (1.00x) | ` 204.0 ms` (2.14x ) |
55
- | parallel | ` 140.0 ms` (1.00x) | ` 373.0 ms` (2.66x ) |
56
- | single-thread | ` 95.5 ms` (1.00x) | ` 211.8 ms` (2.22x ) |
34
+ | no-drop | ` 91.1 ms` (1.00x) | ` 363.8 ms` (3.99x ) |
35
+ | parallel | ` 146.9 ms` (1.00x) | ` 770.5 ms` (5.24x ) |
36
+ | single-thread | ` 90.2 ms` (1.00x) | ` 370.2 ms` (4.11x ) |
57
37
58
38
### Run benchmark locally
59
39
@@ -76,12 +56,12 @@ pnpm run table
76
56
./memory.sh
77
57
78
58
./files/cal.com.tsx
79
- oxc 41.7 mb
80
- swc 31.1 mb
59
+ oxc 26.3 mb
60
+ swc 30.9 mb
81
61
82
62
./files/typescript.js
83
- oxc 224.4 mb
84
- swc 160.1 mb
63
+ oxc 137.8 mb
64
+ swc 148.5 mb
85
65
```
86
66
87
67
## Setup
0 commit comments