Commit 42b4caf
authored
fix(es/renamer): Remove
**Description:**
Actually it was slower.
```
Starting recording with the Time Profiler template. Launching process: full-4ec72b7d24d0fcd8.
Ctrl-C to stop the recording
Gnuplot not found, using plotters backend
Benchmarking es/minify/libraries/antd
Benchmarking es/minify/libraries/antd: Warming up for 3.0000 s
Warning: Unable to complete 10 samples in 5.0s. You may wish to increase target time to 5.2s.
Benchmarking es/minify/libraries/antd: Collecting 10 samples in estimated 5.1501 s (10 iterations)
Benchmarking es/minify/libraries/antd: Analyzing
es/minify/libraries/antd
time: [517.09 ms 521.65 ms 527.04 ms]
change: [-5.0960% -4.1320% -3.0084%] (p = 0.00 < 0.05)
Performance has improved.
Benchmarking es/minify/libraries/d3
Benchmarking es/minify/libraries/d3: Warming up for 3.0000 s
Warning: Unable to complete 10 samples in 5.0s. You may wish to increase target time to 7.3s or enable flat sampling.
Benchmarking es/minify/libraries/d3: Collecting 10 samples in estimated 7.3000 s (55 iterations)
Benchmarking es/minify/libraries/d3: Analyzing
es/minify/libraries/d3 time: [132.42 ms 132.66 ms 132.93 ms]
change: [-5.0809% -4.6687% -4.2423%] (p = 0.00 < 0.05)
Performance has improved.
Found 1 outliers among 10 measurements (10.00%)
1 (10.00%) high mild
Benchmarking es/minify/libraries/echarts
Benchmarking es/minify/libraries/echarts: Warming up for 3.0000 s
Benchmarking es/minify/libraries/echarts: Collecting 10 samples in estimated 8.8664 s (20 iterations)
Benchmarking es/minify/libraries/echarts: Analyzing
es/minify/libraries/echarts
time: [441.89 ms 442.98 ms 444.21 ms]
change: [-5.8436% -5.4580% -5.0604%] (p = 0.00 < 0.05)
Performance has improved.
Benchmarking es/minify/libraries/jquery
Benchmarking es/minify/libraries/jquery: Warming up for 3.0000 s
Benchmarking es/minify/libraries/jquery: Collecting 10 samples in estimated 7.2124 s (165 iterations)
Benchmarking es/minify/libraries/jquery: Analyzing
es/minify/libraries/jquery
time: [43.549 ms 43.624 ms 43.703 ms]
change: [-3.3699% -3.0686% -2.7597%] (p = 0.00 < 0.05)
Performance has improved.
Benchmarking es/minify/libraries/lodash
Benchmarking es/minify/libraries/lodash: Warming up for 3.0000 s
Benchmarking es/minify/libraries/lodash: Collecting 10 samples in estimated 6.5048 s (110 iterations)
Benchmarking es/minify/libraries/lodash: Analyzing
es/minify/libraries/lodash
time: [58.951 ms 59.114 ms 59.290 ms]
change: [-1.2723% -0.7019% -0.0217%] (p = 0.06 > 0.05)
No change in performance detected.
Found 1 outliers among 10 measurements (10.00%)
1 (10.00%) high severe
Benchmarking es/minify/libraries/moment
Benchmarking es/minify/libraries/moment: Warming up for 3.0000 s
Benchmarking es/minify/libraries/moment: Collecting 10 samples in estimated 5.5497 s (220 iterations)
Benchmarking es/minify/libraries/moment: Analyzing
es/minify/libraries/moment
time: [25.261 ms 25.313 ms 25.355 ms]
change: [-1.4771% -0.9851% -0.5957%] (p = 0.00 < 0.05)
Change within noise threshold.
Benchmarking es/minify/libraries/react
Benchmarking es/minify/libraries/react: Warming up for 3.0000 s
Benchmarking es/minify/libraries/react: Collecting 10 samples in estimated 5.1132 s (605 iterations)
Benchmarking es/minify/libraries/react: Analyzing
es/minify/libraries/react
time: [8.4265 ms 8.4431 ms 8.4624 ms]
change: [-1.3741% -1.0134% -0.6710%] (p = 0.00 < 0.05)
Change within noise threshold.
Found 1 outliers among 10 measurements (10.00%)
1 (10.00%) high mild
Benchmarking es/minify/libraries/terser
Benchmarking es/minify/libraries/terser: Warming up for 3.0000 s
Warning: Unable to complete 10 samples in 5.0s. You may wish to increase target time to 5.6s or enable flat sampling.
Benchmarking es/minify/libraries/terser: Collecting 10 samples in estimated 5.5614 s (55 iterations)
Benchmarking es/minify/libraries/terser: Analyzing
es/minify/libraries/terser
time: [100.87 ms 100.98 ms 101.15 ms]
change: [-6.7656% -6.1477% -5.4618%] (p = 0.00 < 0.05)
Performance has improved.
Found 1 outliers among 10 measurements (10.00%)
1 (10.00%) high severe
Benchmarking es/minify/libraries/three
Benchmarking es/minify/libraries/three: Warming up for 3.0000 s
Warning: Unable to complete 10 samples in 5.0s. You may wish to increase target time to 9.3s or enable flat sampling.
Benchmarking es/minify/libraries/three: Collecting 10 samples in estimated 9.3499 s (55 iterations)
Benchmarking es/minify/libraries/three: Analyzing
es/minify/libraries/three
time: [170.12 ms 170.44 ms 170.81 ms]
change: [-6.9164% -6.4564% -5.9450%] (p = 0.00 < 0.05)
Performance has improved.
Found 1 outliers among 10 measurements (10.00%)
1 (10.00%) high severe
Benchmarking es/minify/libraries/typescript
Benchmarking es/minify/libraries/typescript: Warming up for 3.0000 s
Warning: Unable to complete 10 samples in 5.0s. You may wish to increase target time to 9.3s.
Benchmarking es/minify/libraries/typescript: Collecting 10 samples in estimated 9.2642 s (10 iterations)
Benchmarking es/minify/libraries/typescript: Analyzing
es/minify/libraries/typescript
time: [927.57 ms 929.26 ms 930.85 ms]
change: [-4.4792% -4.1803% -3.9000%] (p = 0.00 < 0.05)
Performance has improved.
Benchmarking es/minify/libraries/victory
Benchmarking es/minify/libraries/victory: Warming up for 3.0000 s
Benchmarking es/minify/libraries/victory: Collecting 10 samples in estimated 7.0301 s (30 iterations)
Benchmarking es/minify/libraries/victory: Analyzing
es/minify/libraries/victory
time: [233.98 ms 234.44 ms 234.96 ms]
change: [-7.2681% -6.7396% -6.2554%] (p = 0.00 < 0.05)
Performance has improved.
Benchmarking es/minify/libraries/vue
Benchmarking es/minify/libraries/vue: Warming up for 3.0000 s
Benchmarking es/minify/libraries/vue: Collecting 10 samples in estimated 6.7241 s (110 iterations)
Benchmarking es/minify/libraries/vue: Analyzing
es/minify/libraries/vue time: [61.051 ms 61.124 ms 61.225 ms]
change: [-2.3890% -2.1697% -1.9536%] (p = 0.00 < 0.05)
Performance has improved.
```
**Related issue:**
- Closes #9126FastJsWord (#9136)1 parent f70e071 commit 42b4caf
File tree
3 files changed
+24
-70
lines changed- crates/swc_ecma_transforms_base/src/rename
- analyzer
3 files changed
+24
-70
lines changedLines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
Lines changed: 18 additions & 62 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
| 39 | + | |
71 | 40 | | |
72 | 41 | | |
73 | 42 | | |
| |||
77 | 46 | | |
78 | 47 | | |
79 | 48 | | |
80 | | - | |
| 49 | + | |
81 | 50 | | |
82 | 51 | | |
83 | 52 | | |
| |||
88 | 57 | | |
89 | 58 | | |
90 | 59 | | |
91 | | - | |
92 | | - | |
93 | | - | |
| 60 | + | |
94 | 61 | | |
95 | 62 | | |
96 | 63 | | |
| |||
106 | 73 | | |
107 | 74 | | |
108 | 75 | | |
109 | | - | |
| 76 | + | |
110 | 77 | | |
111 | 78 | | |
112 | 79 | | |
| |||
124 | 91 | | |
125 | 92 | | |
126 | 93 | | |
127 | | - | |
| 94 | + | |
128 | 95 | | |
129 | 96 | | |
130 | 97 | | |
| |||
159 | 126 | | |
160 | 127 | | |
161 | 128 | | |
162 | | - | |
| 129 | + | |
163 | 130 | | |
164 | 131 | | |
165 | 132 | | |
166 | 133 | | |
167 | 134 | | |
168 | 135 | | |
169 | | - | |
170 | | - | |
| 136 | + | |
171 | 137 | | |
172 | 138 | | |
173 | 139 | | |
| |||
181 | 147 | | |
182 | 148 | | |
183 | 149 | | |
184 | | - | |
185 | 150 | | |
186 | 151 | | |
187 | 152 | | |
188 | 153 | | |
189 | 154 | | |
190 | 155 | | |
191 | | - | |
192 | | - | |
193 | | - | |
| 156 | + | |
| 157 | + | |
194 | 158 | | |
195 | 159 | | |
196 | 160 | | |
197 | 161 | | |
198 | 162 | | |
199 | 163 | | |
200 | 164 | | |
201 | | - | |
| 165 | + | |
202 | 166 | | |
203 | 167 | | |
204 | 168 | | |
205 | 169 | | |
206 | | - | |
| 170 | + | |
207 | 171 | | |
208 | 172 | | |
209 | 173 | | |
| |||
223 | 187 | | |
224 | 188 | | |
225 | 189 | | |
226 | | - | |
| 190 | + | |
227 | 191 | | |
228 | 192 | | |
229 | 193 | | |
| |||
294 | 258 | | |
295 | 259 | | |
296 | 260 | | |
297 | | - | |
| 261 | + | |
298 | 262 | | |
299 | 263 | | |
300 | 264 | | |
301 | 265 | | |
302 | 266 | | |
303 | 267 | | |
304 | | - | |
305 | 268 | | |
306 | | - | |
307 | | - | |
| 269 | + | |
| 270 | + | |
308 | 271 | | |
309 | 272 | | |
310 | 273 | | |
| |||
318 | 281 | | |
319 | 282 | | |
320 | 283 | | |
321 | | - | |
322 | | - | |
323 | 284 | | |
324 | 285 | | |
325 | 286 | | |
326 | 287 | | |
327 | 288 | | |
328 | 289 | | |
329 | | - | |
330 | | - | |
331 | | - | |
| 290 | + | |
| 291 | + | |
332 | 292 | | |
333 | 293 | | |
334 | 294 | | |
| |||
343 | 303 | | |
344 | 304 | | |
345 | 305 | | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | | - | |
189 | | - | |
| 187 | + | |
190 | 188 | | |
191 | 189 | | |
192 | 190 | | |
| |||
0 commit comments