Skip to content

Commit

Permalink
Fix bundle stats (#6846)
Browse files Browse the repository at this point in the history
* save cache to 4.x

* save fix

* save again

* test

* test

* test

* fix

* finish
  • Loading branch information
avkos authored Mar 1, 2024
1 parent 0e59f28 commit bd6cc71
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,12 @@ jobs:
uses: actions/cache/restore@v3
with:
path: packages/web3/dist/4.x.json
key: web3-bundle-stats-4x-${{github.sha}}
key: web3-bundle-stats-4x-${{github.event.pull_request.base.sha}}
- run: yarn build:web:analyze
env:
STATS_FILE: ${{ github.ref_name }}.json
- name: Compare bundle stats
uses: github/webpack-bundlesize-compare-action@v1
if: github.event_name != 'push'
uses: github/[email protected]
continue-on-error: true
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -105,9 +104,10 @@ jobs:
uses: actions/cache/save@v3
if: github.event_name == 'push' && github.ref == 'refs/heads/4.x'
with:
path: packages/web3/dist/4.x.json
path: packages/web3/dist/${{ github.ref_name }}.json
key: web3-bundle-stats-4x-${{github.sha}}


unit:
name: Unit Tests
needs: build
Expand Down

1 comment on commit bd6cc71

@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: bd6cc71 Previous: 6c075db Ratio
processingTx 9351 ops/sec (±4.92%) 9301 ops/sec (±4.81%) 0.99
processingContractDeploy 41995 ops/sec (±8.15%) 39129 ops/sec (±7.62%) 0.93
processingContractMethodSend 20372 ops/sec (±5.90%) 19443 ops/sec (±5.19%) 0.95
processingContractMethodCall 41113 ops/sec (±4.65%) 38971 ops/sec (±6.34%) 0.95
abiEncode 47773 ops/sec (±6.16%) 44252 ops/sec (±6.92%) 0.93
abiDecode 32572 ops/sec (±7.59%) 30419 ops/sec (±8.89%) 0.93
sign 1648 ops/sec (±3.02%) 1656 ops/sec (±4.08%) 1.00
verify 374 ops/sec (±0.56%) 373 ops/sec (±0.78%) 1.00

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

Please sign in to comment.