@@ -6,7 +6,7 @@ The purpose of this benchmark is for people who wants to evaluate and compare th
66
77The benchmark measures the whole parse -> transform -> codegen pipeline as a real-word scenario.
88
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.
1010
1111## Results
1212
@@ -19,41 +19,21 @@ The numbers indicate that Oxc is at least 2 times faster than Swc.
1919
2020Codspeed measures performance by cpu instructions.
2121
22- ### Mac mini M2 8 cores
22+ ### Target lowering to es2015
2323
2424### 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) |
3130
3231### 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-
5232| | oxc | swc |
5333| ------------- | ------------------ | ------------------ |
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 ) |
5737
5838### Run benchmark locally
5939
@@ -76,12 +56,12 @@ pnpm run table
7656./memory.sh
7757
7858./files/cal.com.tsx
79- oxc 41.7 mb
80- swc 31.1 mb
59+ oxc 26.3 mb
60+ swc 30.9 mb
8161
8262./files/typescript.js
83- oxc 224.4 mb
84- swc 160.1 mb
63+ oxc 137.8 mb
64+ swc 148.5 mb
8565```
8666
8767## Setup
0 commit comments