Skip to content

Commit

Permalink
chore(ci): Skip benchmark for forks (#6489)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj authored Nov 21, 2022
1 parent c6d33b3 commit 78af96e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Benchmark

on:
- push
- pull_request
pull_request:
types: ['opened', 'reopened', 'synchronize']
push:
branches:
- main

env:
RUST_LOG: "off"
Expand All @@ -11,7 +14,7 @@ jobs:
binary-size:
name: Binary size
if: >-
${{ !contains(github.event.head_commit.message, 'chore: ') }}
${{ !contains(github.event.head_commit.message, 'chore: ') && github.repository_owner == 'swc-project' }}
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -40,7 +43,7 @@ jobs:
benchmark:
name: Performance regression check
if: >-
${{ !contains(github.event.head_commit.message, 'chore: ') }}
${{ !contains(github.event.head_commit.message, 'chore: ') && github.repository_owner == 'swc-project' }}
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
Expand Down

1 comment on commit 78af96e

@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: 78af96e Previous: d957aac Ratio
es/full/bugs-1 398833 ns/iter (± 53619) 355644 ns/iter (± 34972) 1.12
es/full/minify/libraries/antd 2234395988 ns/iter (± 135447711) 1924375843 ns/iter (± 24700286) 1.16
es/full/minify/libraries/d3 512614604 ns/iter (± 51336056) 418516624 ns/iter (± 29468176) 1.22
es/full/minify/libraries/echarts 1923650094 ns/iter (± 162205528) 1661882174 ns/iter (± 72001162) 1.16
es/full/minify/libraries/jquery 123584777 ns/iter (± 15048325) 121308547 ns/iter (± 8114923) 1.02
es/full/minify/libraries/lodash 161784281 ns/iter (± 13808803) 144805257 ns/iter (± 19088462) 1.12
es/full/minify/libraries/moment 75540370 ns/iter (± 9931887) 70734769 ns/iter (± 3944496) 1.07
es/full/minify/libraries/react 25898641 ns/iter (± 4280240) 25782656 ns/iter (± 880415) 1.00
es/full/minify/libraries/terser 390577617 ns/iter (± 23432359) 389602971 ns/iter (± 32330111) 1.00
es/full/minify/libraries/three 679709005 ns/iter (± 30276715) 652272739 ns/iter (± 14458354) 1.04
es/full/minify/libraries/typescript 4108720320 ns/iter (± 268764285) 3754961918 ns/iter (± 140474437) 1.09
es/full/minify/libraries/victory 1035093463 ns/iter (± 116045269) 894463918 ns/iter (± 20935420) 1.16
es/full/minify/libraries/vue 208095956 ns/iter (± 38716998) 176250640 ns/iter (± 11113458) 1.18
es/full/codegen/es3 54694 ns/iter (± 55527) 34452 ns/iter (± 1948) 1.59
es/full/codegen/es5 44234 ns/iter (± 7716) 34702 ns/iter (± 3535) 1.27
es/full/codegen/es2015 38024 ns/iter (± 6390) 33413 ns/iter (± 939) 1.14
es/full/codegen/es2016 37600 ns/iter (± 6573) 33736 ns/iter (± 3185) 1.11
es/full/codegen/es2017 39974 ns/iter (± 6817) 35426 ns/iter (± 4759) 1.13
es/full/codegen/es2018 38439 ns/iter (± 6313) 39407 ns/iter (± 46759) 0.98
es/full/codegen/es2019 37205 ns/iter (± 6613) 34982 ns/iter (± 3113) 1.06
es/full/codegen/es2020 41942 ns/iter (± 6894) 33830 ns/iter (± 2334) 1.24
es/full/all/es3 251948340 ns/iter (± 37217407) 227251443 ns/iter (± 28622846) 1.11
es/full/all/es5 234656999 ns/iter (± 39401131) 207132358 ns/iter (± 20417800) 1.13
es/full/all/es2015 181917552 ns/iter (± 25232232) 164477962 ns/iter (± 15605318) 1.11
es/full/all/es2016 176925311 ns/iter (± 24703197) 154922776 ns/iter (± 10742297) 1.14
es/full/all/es2017 180390230 ns/iter (± 22479749) 153141706 ns/iter (± 13307824) 1.18
es/full/all/es2018 175313633 ns/iter (± 33158829) 152004383 ns/iter (± 11550747) 1.15
es/full/all/es2019 170104284 ns/iter (± 26319207) 150753334 ns/iter (± 12385616) 1.13
es/full/all/es2020 156894682 ns/iter (± 32027614) 146794393 ns/iter (± 9968285) 1.07
es/full/parser 838904 ns/iter (± 147707) 746922 ns/iter (± 37924) 1.12
es/full/base/fixer 29807 ns/iter (± 7397) 26820 ns/iter (± 1093) 1.11
es/full/base/resolver_and_hygiene 110898 ns/iter (± 24076) 94866 ns/iter (± 5480) 1.17
serialization of ast node 215 ns/iter (± 31) 209 ns/iter (± 21) 1.03
serialization of serde 231 ns/iter (± 42) 214 ns/iter (± 6) 1.08

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

Please sign in to comment.