-
-
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.
feat(node/core): Include noop swc binaries (#3088)
- Loading branch information
Showing
16 changed files
with
80 additions
and
19 deletions.
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
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 |
---|---|---|
|
@@ -6,6 +6,8 @@ | |
native/artifacts.json | ||
artifacts.json | ||
*.node | ||
/scripts/npm/**/swc | ||
/scripts/npm/**/swc.exe | ||
|
||
|
||
target/ | ||
|
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
|
||
# Naive substitution to napi artifacts for the cli binary. | ||
for filename in artifacts/*/*.node | ||
do | ||
BINDING_NAME=${filename#*.} | ||
BINDING_ABI=${BINDING_NAME%%.*} | ||
CLI_BINARY_PATH=${filename%%.*} | ||
|
||
if [ -f "$CLI_BINARY_PATH" ]; then | ||
mv $CLI_BINARY_PATH ./scripts/npm/$BINDING_ABI | ||
else | ||
mv $CLI_BINARY_PATH.exe ./scripts/npm/$BINDING_ABI | ||
fi | ||
done |
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
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
42046e1
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
full_es2015
186755482
ns/iter (± 5880196
)212639426
ns/iter (± 14714584
)0.88
full_es2016
155699605
ns/iter (± 7613667
)175281235
ns/iter (± 13685099
)0.89
full_es2017
162094039
ns/iter (± 10373758
)186731462
ns/iter (± 18657111
)0.87
full_es2018
162118908
ns/iter (± 9709958
)183433279
ns/iter (± 11217627
)0.88
full_es2019
160710004
ns/iter (± 8549167
)181566487
ns/iter (± 10636700
)0.89
full_es2020
161675683
ns/iter (± 10727616
)182302548
ns/iter (± 17032149
)0.89
full_es3
226641960
ns/iter (± 9114783
)253810103
ns/iter (± 26373763
)0.89
full_es5
203571676
ns/iter (± 13465173
)232546335
ns/iter (± 23158662
)0.88
parser
695290
ns/iter (± 18965
)809972
ns/iter (± 97774
)0.86
This comment was automatically generated by workflow using github-action-benchmark.