-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b6b9c0
commit 634d732
Showing
3,442 changed files
with
32,585 additions
and
148,213 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
crates/swc/tests/fixture/codegen/tpl-lit/case-1/output/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
"\""; | ||
'"'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
if (true) { | ||
console.log('Pass'); | ||
console.log("Pass"); | ||
} |
4 changes: 2 additions & 2 deletions
4
crates/swc/tests/fixture/globals/member-expr/precendence/output/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
console.log(true); | ||
if (true) { | ||
console.log('Pass'); | ||
console.log("Pass"); | ||
} | ||
console.log('foo'); | ||
console.log("foo"); |
2 changes: 1 addition & 1 deletion
2
crates/swc/tests/fixture/globals/typeofs-declared/output/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import * as swcHelpers from "@swc/helpers"; | ||
var window = 'foo'; | ||
var window = "foo"; | ||
console.log(typeof window === "undefined" ? "undefined" : swcHelpers.typeOf(window)); |
4 changes: 2 additions & 2 deletions
4
crates/swc/tests/fixture/hygiene/issue-3213/1/output/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
'use strict'; | ||
"use strict"; | ||
function print() { | ||
var value$43 = 2; | ||
var value$41 = value$43 + 100; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import * as swcHelpers from "@swc/helpers"; | ||
export var Class1 = function Class1(param) { | ||
"use strict"; | ||
var _name = param.name, name = _name === void 0 ? '' : _name; | ||
var _name = param.name, name = _name === void 0 ? "" : _name; | ||
swcHelpers.classCallCheck(this, Class1); | ||
console.log(name); | ||
}; | ||
export var Class2 = function Class2(param) { | ||
"use strict"; | ||
var _name = param.name, name = _name === void 0 ? '' : _name; | ||
var _name = param.name, name = _name === void 0 ? "" : _name; | ||
swcHelpers.classCallCheck(this, Class2); | ||
console.log(name); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import * as action from './actions'; | ||
import { foo } from './actions'; | ||
import * as action from "./actions"; | ||
import { foo } from "./actions"; | ||
console.log(action); | ||
console.log(foo); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
crates/swc/tests/fixture/issue-1457/case8-es5/output/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
crates/swc/tests/fixture/issue-1457/case9-es3/output/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { createHash, createHmac } from 'crypto-browserify'; | ||
import { createHash, createHmac } from "crypto-browserify"; | ||
var hash = createHash(algorithm); | ||
var hmac = createHmac(fn, key); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import foo, * as action from './actions'; | ||
import foo, * as action from "./actions"; | ||
console.log(action); | ||
console.log(foo); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export function example() { | ||
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 'click', b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, c = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1; | ||
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "click", b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, c = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1; | ||
console.log(a, b, c); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
634d732
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
base_tr_fixer
24348
ns/iter (± 2855
)29371
ns/iter (± 5243
)0.83
base_tr_resolver_and_hygiene
109153
ns/iter (± 31611
)124374
ns/iter (± 49258
)0.88
codegen_es2015
32698
ns/iter (± 3369
)34621
ns/iter (± 8375
)0.94
codegen_es2016
32852
ns/iter (± 5160
)33598
ns/iter (± 6706
)0.98
codegen_es2017
32802
ns/iter (± 2812
)34155
ns/iter (± 5751
)0.96
codegen_es2018
30167
ns/iter (± 5077
)37596
ns/iter (± 5540
)0.80
codegen_es2019
29821
ns/iter (± 3813
)35033
ns/iter (± 9787
)0.85
codegen_es2020
31244
ns/iter (± 4803
)35291
ns/iter (± 6783
)0.89
codegen_es3
31712
ns/iter (± 4003
)35132
ns/iter (± 7059
)0.90
codegen_es5
33457
ns/iter (± 2273
)34184
ns/iter (± 5664
)0.98
full_es2015
153722520
ns/iter (± 12359693
)157276900
ns/iter (± 17283620
)0.98
full_es2016
148550262
ns/iter (± 23247087
)157640244
ns/iter (± 19940263
)0.94
full_es2017
149155771
ns/iter (± 13839297
)153929280
ns/iter (± 12311870
)0.97
full_es2018
147206268
ns/iter (± 20845953
)155299187
ns/iter (± 18681497
)0.95
full_es2019
147326095
ns/iter (± 17068798
)151126242
ns/iter (± 15232746
)0.97
full_es2020
140878203
ns/iter (± 12211253
)152166344
ns/iter (± 13712793
)0.93
full_es3
199883806
ns/iter (± 15124942
)207897779
ns/iter (± 21634073
)0.96
full_es5
185893066
ns/iter (± 14859935
)194914716
ns/iter (± 18038099
)0.95
parser
592793
ns/iter (± 58040
)696900
ns/iter (± 113757
)0.85
ser_ast_node
162
ns/iter (± 15
)176
ns/iter (± 41
)0.92
ser_serde
155
ns/iter (± 13
)167
ns/iter (± 29
)0.93
emit_colors
11020158
ns/iter (± 7039366
)11552262
ns/iter (± 6740165
)0.95
emit_large
53222637
ns/iter (± 79054125
)50517009
ns/iter (± 73132246
)1.05
base_clone
2595133
ns/iter (± 277844
)2581568
ns/iter (± 499415
)1.01
fold_span
4260726
ns/iter (± 460319
)4395002
ns/iter (± 819072
)0.97
fold_span_panic
4014529
ns/iter (± 337507
)4720339
ns/iter (± 827507
)0.85
visit_mut_span
2844217
ns/iter (± 278989
)3088948
ns/iter (± 598359
)0.92
visit_mut_span_panic
2941650
ns/iter (± 274343
)3216821
ns/iter (± 709137
)0.91
usage_builtin_type
16765592
ns/iter (± 11641889
)17878267
ns/iter (± 12118300
)0.94
usage_property
442095
ns/iter (± 56315
)452125
ns/iter (± 99634
)0.98
boxing_boxed
177
ns/iter (± 4
)152
ns/iter (± 27
)1.16
boxing_boxed_clone
84
ns/iter (± 5
)77
ns/iter (± 15
)1.09
boxing_unboxed
145
ns/iter (± 5
)131
ns/iter (± 30
)1.11
boxing_unboxed_clone
66
ns/iter (± 8
)73
ns/iter (± 18
)0.90
time_10
380
ns/iter (± 50
)319
ns/iter (± 72
)1.19
time_15
739
ns/iter (± 80
)751
ns/iter (± 214
)0.98
time_20
1432
ns/iter (± 212
)1370
ns/iter (± 316
)1.05
time_40
4458
ns/iter (± 643
)4746
ns/iter (± 1105
)0.94
time_5
119
ns/iter (± 14
)112
ns/iter (± 36
)1.06
time_60
10300
ns/iter (± 1442
)10266
ns/iter (± 2537
)1.00
total
0
ns/iter (± 0
)0
ns/iter (± 0
)NaN
This comment was automatically generated by workflow using github-action-benchmark.