From 105e4e86d12c3b93493beda9f93833b1570957bb Mon Sep 17 00:00:00 2001 From: Yan Chen Date: Fri, 15 Sep 2023 10:11:06 -0700 Subject: [PATCH] aggressive wasm-opt --- .github/workflows/perf.yml | 2 +- utils.mk | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml index 46bb1434..a72493ce 100644 --- a/.github/workflows/perf.yml +++ b/.github/workflows/perf.yml @@ -14,7 +14,7 @@ jobs: DFX_VERSION: 0.14.4 IC_REPL_VERSION: 0.4.1 MOC_VERSION: 0.10.0 - IC_WASM_VERSION: 0.4.0 + IC_WASM_VERSION: 0.5.0 steps: - uses: actions/checkout@v3 - name: Checkout out gh-pages report diff --git a/utils.mk b/utils.mk index c67f3ba2..cb3e1efb 100644 --- a/utils.mk +++ b/utils.mk @@ -1,5 +1,6 @@ define ic-wasm - echo "No Optimize!" + echo "Aggressive optimize with ic-wasm"; \ + for f in $(1)/*/*.wasm; do ic-wasm -o $$f $$f optimize O4 --inline-functions-with-loops --always-inline-max-function-size 100 --keep-name-section; done endef define build_with_mops