Skip to content

Commit

Permalink
chore(xtask): Add --features to xtask bench (#8094)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Oct 11, 2023
1 parent 77d3401 commit f5d7acf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -765,9 +765,7 @@ jobs:
# Avoid no space left on device, copyfile
cargo clean
cargo clean --manifest-path ./bindings/binding_core_node/Cargo.toml
cargo clean --manifest-path ./bindings/binding_core_wasm/Cargo.toml
cargo clean --manifest-path ./bindings/swc_cli/Cargo.toml
(cd ./bindings && cargo clean)
yarn global add @swc/cli@0.1.56
yarn link
Expand All @@ -779,11 +777,11 @@ jobs:
- name: (swc) three.js
run: |
mkdir -p tests/integration/three-js
yarn global add qunit failonlyreporter
# mkdir -p tests/integration/three-js
# yarn global add qunit failonlyreporter
# Download three.js
git clone --depth 1 https://github.com/mrdoob/three.js.git -b r117 tests/integration/three-js/repo
# git clone --depth 1 https://github.com/mrdoob/three.js.git -b r117 tests/integration/three-js/repo
# TODO
# swc -C isModule=unknown -C test=\".*.js$\" -C module.type=commonjs --sync tests/integration/three-js/repo/ -d tests/integration/three-js/build/
Expand All @@ -796,8 +794,8 @@ jobs:
# jQuery: browser only (window.document is required)
- name: (swc) redux
run: |
mkdir -p tests/integration/redux
yarn global add qunit failonlyreporter
# mkdir -p tests/integration/redux
# yarn global add qunit failonlyreporter
# Download
# git clone --depth 1 https://github.com/reduxjs/redux.git -b v4.1.0 tests/integration/redux/repo
Expand Down
7 changes: 7 additions & 0 deletions xtask/src/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ pub(super) struct BenchCmd {
#[clap(long)]
instrument: bool,

#[clap(long)]
features: Vec<String>,

args: Vec<String>,
}

Expand Down Expand Up @@ -76,6 +79,10 @@ impl BenchCmd {
cmd.arg("--bench").arg(b);
}

for f in self.features.iter() {
cmd.arg("--features").arg(f);
}

if self.instrument {
cmd.arg("--").arg("--bench").args(&self.args);
} else {
Expand Down

1 comment on commit f5d7acf

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: f5d7acf Previous: a2d0779 Ratio
es/full/bugs-1 286359 ns/iter (± 4127) 284982 ns/iter (± 9574) 1.00
es/full/minify/libraries/antd 1393736165 ns/iter (± 25069785) 1414011386 ns/iter (± 21852555) 0.99
es/full/minify/libraries/d3 296153563 ns/iter (± 5473255) 292739098 ns/iter (± 3551888) 1.01
es/full/minify/libraries/echarts 1120107412 ns/iter (± 9931834) 1124513281 ns/iter (± 9243829) 1.00
es/full/minify/libraries/jquery 88812640 ns/iter (± 635028) 89357533 ns/iter (± 572750) 0.99
es/full/minify/libraries/lodash 104309085 ns/iter (± 643210) 103712444 ns/iter (± 233261) 1.01
es/full/minify/libraries/moment 52108482 ns/iter (± 110984) 52273201 ns/iter (± 178185) 1.00
es/full/minify/libraries/react 18826987 ns/iter (± 65722) 18920584 ns/iter (± 47429) 1.00
es/full/minify/libraries/terser 230826920 ns/iter (± 1052248) 230763630 ns/iter (± 2357972) 1.00
es/full/minify/libraries/three 409467595 ns/iter (± 2930821) 410363008 ns/iter (± 3911189) 1.00
es/full/minify/libraries/typescript 2774462791 ns/iter (± 20644780) 2783596608 ns/iter (± 9004156) 1.00
es/full/minify/libraries/victory 605731953 ns/iter (± 11584196) 598629375 ns/iter (± 12550378) 1.01
es/full/minify/libraries/vue 125365585 ns/iter (± 692448) 126337677 ns/iter (± 639230) 0.99
es/full/codegen/es3 34882 ns/iter (± 227) 34906 ns/iter (± 64) 1.00
es/full/codegen/es5 34706 ns/iter (± 151) 34964 ns/iter (± 93) 0.99
es/full/codegen/es2015 34814 ns/iter (± 42) 35086 ns/iter (± 141) 0.99
es/full/codegen/es2016 34749 ns/iter (± 160) 35042 ns/iter (± 117) 0.99
es/full/codegen/es2017 34737 ns/iter (± 127) 35086 ns/iter (± 85) 0.99
es/full/codegen/es2018 34837 ns/iter (± 90) 35072 ns/iter (± 91) 0.99
es/full/codegen/es2019 34765 ns/iter (± 85) 35105 ns/iter (± 99) 0.99
es/full/codegen/es2020 34803 ns/iter (± 186) 35104 ns/iter (± 65) 0.99
es/full/all/es3 178319549 ns/iter (± 1624839) 179012614 ns/iter (± 1387787) 1.00
es/full/all/es5 170734413 ns/iter (± 2190765) 171814205 ns/iter (± 1164236) 0.99
es/full/all/es2015 130352425 ns/iter (± 863140) 129638537 ns/iter (± 1124895) 1.01
es/full/all/es2016 128745964 ns/iter (± 785303) 128642716 ns/iter (± 1325236) 1.00
es/full/all/es2017 128471979 ns/iter (± 995171) 129018938 ns/iter (± 1032123) 1.00
es/full/all/es2018 126407468 ns/iter (± 1216997) 126159460 ns/iter (± 1857671) 1.00
es/full/all/es2019 125747649 ns/iter (± 528811) 125908134 ns/iter (± 994205) 1.00
es/full/all/es2020 121074504 ns/iter (± 839994) 121543040 ns/iter (± 723063) 1.00
es/full/parser 572124 ns/iter (± 4592) 574855 ns/iter (± 2637) 1.00
es/full/base/fixer 18187 ns/iter (± 60) 17954 ns/iter (± 85) 1.01
es/full/base/resolver_and_hygiene 85844 ns/iter (± 442) 85310 ns/iter (± 176) 1.01

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.