From 35799ac8d7ee118c311acf1d408c0afd456b9140 Mon Sep 17 00:00:00 2001 From: Yan Chen Date: Thu, 14 Sep 2023 12:42:12 -0700 Subject: [PATCH 1/6] test moc inlining --- .github/workflows/perf.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml index 66e8dd80..1d734b7e 100644 --- a/.github/workflows/perf.yml +++ b/.github/workflows/perf.yml @@ -13,7 +13,7 @@ jobs: env: DFX_VERSION: 0.14.3 IC_REPL_VERSION: 0.4.1 - MOC_VERSION: 0.9.7 + MOC_ARTIFACT: 923960883 IC_WASM_VERSION: 0.4.0 steps: - uses: actions/checkout@v3 @@ -58,14 +58,13 @@ jobs: - name: Install ic-repl, mops, dfx, and moc run: | echo y | DFX_VERSION=$DFX_VERSION bash -ci "$(curl -fsSL https://smartcontracts.org/install.sh)" - wget https://github.com/chenyan2002/ic-repl/releases/download/$IC_REPL_VERSION/ic-repl-linux64 - cp ./ic-repl-linux64 /usr/local/bin/ic-repl - chmod a+x /usr/local/bin/ic-repl + cargo install --git https://github.com/dfinity/ic-repl.git --branch new-meter npm i -g ic-mops dfx cache install - cd $(dfx cache show) - wget https://github.com/dfinity/motoko/releases/download/$MOC_VERSION/motoko-linux64-$MOC_VERSION.tar.gz - tar zxvf motoko-linux64-$MOC_VERSION.tar.gz + wget https://nightly.link/dfinity/motoko/actions/artifacts/$MOC_ARTIFACT.zip + unzip $MOC_ARTIFACT.zip + chmod a+x bin/moc + cp -rf bin/moc $(dfx cache show) wget https://github.com/dfinity/ic-wasm/releases/download/$IC_WASM_VERSION/ic-wasm-linux64 cp ./ic-wasm-linux64 /usr/local/bin/ic-wasm chmod a+x /usr/local/bin/ic-wasm From f5888c0e0598c4206228502361f620aa0a64abb0 Mon Sep 17 00:00:00 2001 From: Yan Chen Date: Thu, 14 Sep 2023 12:54:17 -0700 Subject: [PATCH 2/6] fix --- .github/workflows/perf.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml index 1d734b7e..e190f856 100644 --- a/.github/workflows/perf.yml +++ b/.github/workflows/perf.yml @@ -14,6 +14,7 @@ jobs: DFX_VERSION: 0.14.3 IC_REPL_VERSION: 0.4.1 MOC_ARTIFACT: 923960883 + MOC_VERSION: 0.9.7 IC_WASM_VERSION: 0.4.0 steps: - uses: actions/checkout@v3 From 0bd859254c01a62752ad597b2f060f81cd172293 Mon Sep 17 00:00:00 2001 From: Yan Chen Date: Thu, 14 Sep 2023 13:58:59 -0700 Subject: [PATCH 3/6] fix --- .github/workflows/perf.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml index ffd6ee7b..7d6cb457 100644 --- a/.github/workflows/perf.yml +++ b/.github/workflows/perf.yml @@ -59,7 +59,9 @@ jobs: - name: Install ic-repl, mops, dfx, and moc run: | echo y | DFX_VERSION=$DFX_VERSION bash -ci "$(curl -fsSL https://smartcontracts.org/install.sh)" - cargo install --git https://github.com/dfinity/ic-repl.git --branch new-meter + wget https://github.com/chenyan2002/ic-repl/releases/download/$IC_REPL_VERSION/ic-repl-linux64 + cp ./ic-repl-linux64 /usr/local/bin/ic-repl + chmod a+x /usr/local/bin/ic-repl npm i -g ic-mops dfx cache install cd $(dfx cache show) @@ -83,6 +85,7 @@ jobs: unzip $MOC_ARTIFACT.zip chmod a+x bin/moc cp -rf bin/moc $(dfx cache show) + cargo install --git https://github.com/dfinity/ic-repl.git --branch new-meter dfx start --clean --background - name: Run perf run: make From 82a51c517a3e13a5a267ced511396f14742c6a49 Mon Sep 17 00:00:00 2001 From: Yan Chen Date: Thu, 14 Sep 2023 14:00:25 -0700 Subject: [PATCH 4/6] fix --- .github/workflows/perf.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml index 7d6cb457..c6f37c38 100644 --- a/.github/workflows/perf.yml +++ b/.github/workflows/perf.yml @@ -85,6 +85,7 @@ jobs: unzip $MOC_ARTIFACT.zip chmod a+x bin/moc cp -rf bin/moc $(dfx cache show) + rm -f /usr/local/bin/ic-repl cargo install --git https://github.com/dfinity/ic-repl.git --branch new-meter dfx start --clean --background - name: Run perf From f11b357c849d470a407ee4d377c14287ecb34857 Mon Sep 17 00:00:00 2001 From: Yan Chen Date: Thu, 14 Sep 2023 16:00:08 -0700 Subject: [PATCH 5/6] moc inlining with new metering baseline --- .github/workflows/perf.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml index c6f37c38..ffd6ee7b 100644 --- a/.github/workflows/perf.yml +++ b/.github/workflows/perf.yml @@ -59,9 +59,7 @@ jobs: - name: Install ic-repl, mops, dfx, and moc run: | echo y | DFX_VERSION=$DFX_VERSION bash -ci "$(curl -fsSL https://smartcontracts.org/install.sh)" - wget https://github.com/chenyan2002/ic-repl/releases/download/$IC_REPL_VERSION/ic-repl-linux64 - cp ./ic-repl-linux64 /usr/local/bin/ic-repl - chmod a+x /usr/local/bin/ic-repl + cargo install --git https://github.com/dfinity/ic-repl.git --branch new-meter npm i -g ic-mops dfx cache install cd $(dfx cache show) @@ -85,8 +83,6 @@ jobs: unzip $MOC_ARTIFACT.zip chmod a+x bin/moc cp -rf bin/moc $(dfx cache show) - rm -f /usr/local/bin/ic-repl - cargo install --git https://github.com/dfinity/ic-repl.git --branch new-meter dfx start --clean --background - name: Run perf run: make From 5fd2146c501f96e8b785dcdf562875e8ad76d588 Mon Sep 17 00:00:00 2001 From: Claudio Russo Date: Sun, 17 Sep 2023 02:33:26 +0100 Subject: [PATCH 6/6] use artificat with allocation inlining --- .github/workflows/perf.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml index ffd6ee7b..ef5916d0 100644 --- a/.github/workflows/perf.yml +++ b/.github/workflows/perf.yml @@ -13,7 +13,7 @@ jobs: env: DFX_VERSION: 0.14.4 IC_REPL_VERSION: 0.4.1 - MOC_ARTIFACT: 923960883 + MOC_ARTIFACT: 927804830 MOC_VERSION: 0.10.0 IC_WASM_VERSION: 0.4.0 steps: