Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump moc #117

Closed
wants to merge 35 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
16674be
bump moc
chenyan-dfinity Sep 30, 2024
44886d0
dfx 23
chenyan-dfinity Sep 30, 2024
d7849cf
bump ic-repl
chenyan-dfinity Sep 30, 2024
b29dff6
increase timeout
chenyan-dfinity Sep 30, 2024
9a40a5d
fix
chenyan-dfinity Sep 30, 2024
3b48e09
dfx 22
chenyan-dfinity Sep 30, 2024
b988aff
dfx 21
chenyan-dfinity Oct 1, 2024
694452c
fix
chenyan-dfinity Oct 1, 2024
9990062
fix
chenyan-dfinity Oct 1, 2024
420bd76
reduce crypto size
chenyan-dfinity Oct 1, 2024
e91385a
fix
chenyan-dfinity Oct 1, 2024
8785629
try dfx 0.24
chenyan-dfinity Oct 1, 2024
7737c57
fix
chenyan-dfinity Oct 1, 2024
aac1879
fix
chenyan-dfinity Oct 1, 2024
e8d0399
bypass gateway
chenyan-dfinity Oct 2, 2024
35fd0e1
fix
chenyan-dfinity Oct 2, 2024
873a73a
dfx 21
chenyan-dfinity Oct 2, 2024
095cec0
dfx 22, 21 gets 404 endpoint not found
chenyan-dfinity Oct 2, 2024
d42f640
dfx 21 with ic-repl 0.7
chenyan-dfinity Oct 2, 2024
14f8585
dfx 20
chenyan-dfinity Oct 2, 2024
a901e14
dfx 19
chenyan-dfinity Oct 2, 2024
1f9e5ef
dfx 18
chenyan-dfinity Oct 2, 2024
ee5499f
add back gateway, dfx 22
chenyan-dfinity Oct 2, 2024
39140aa
dfx 21
chenyan-dfinity Oct 2, 2024
814b87e
moc 0.12.1
chenyan-dfinity Oct 2, 2024
70b1d07
dfx 23
chenyan-dfinity Oct 3, 2024
5f39cec
dfx 22
chenyan-dfinity Oct 3, 2024
dfe90c9
try ubuntu
chenyan-dfinity Oct 3, 2024
9e39872
fix
chenyan-dfinity Oct 3, 2024
f9dd09c
moc 0.12.1
chenyan-dfinity Oct 3, 2024
2531d10
reduce crypto size again
chenyan-dfinity Oct 3, 2024
a66ddd8
reduce crypto size again
chenyan-dfinity Oct 3, 2024
a868e42
moc 0.13
chenyan-dfinity Oct 3, 2024
e77c115
reduce crypto size again
chenyan-dfinity Oct 3, 2024
1e5d142
reduce crypto size again
chenyan-dfinity Oct 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions .github/workflows/perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ on:

jobs:
perf:
runs-on: macos-latest
runs-on: ubuntu-latest
strategy:
fail-fast: false
env:
DFX_VERSION: 0.18.0
IC_REPL_VERSION: 0.7.0
MOC_VERSION: 0.11.0
DFX_VERSION: 0.24.0
IC_REPL_VERSION: 0.7.5
MOC_VERSION: 0.13.0
IC_WASM_VERSION: 0.7.0
RUSTC_VERSION: 1.76.0
steps:
Expand Down Expand Up @@ -62,16 +62,17 @@ jobs:
dfx-version: ${{ env.DFX_VERSION }}
- name: Install ic-repl, mops and moc
run: |
wget https://github.com/chenyan2002/ic-repl/releases/download/$IC_REPL_VERSION/ic-repl-macos
cp ./ic-repl-macos /usr/local/bin/ic-repl
chmod a+x /usr/local/bin/ic-repl
#wget https://github.com/chenyan2002/ic-repl/releases/download/$IC_REPL_VERSION/ic-repl-macos
#cp ./ic-repl-macos /usr/local/bin/ic-repl
#chmod a+x /usr/local/bin/ic-repl
cargo install --git https://github.com/dfinity/ic-repl.git --branch increase-timeout
npm i -g ic-mops
dfx cache install
cd $(dfx cache show)
wget https://github.com/dfinity/motoko/releases/download/$MOC_VERSION/motoko-Darwin-x86_64-$MOC_VERSION.tar.gz
tar zxvf motoko-Darwin-x86_64-$MOC_VERSION.tar.gz
wget https://github.com/dfinity/ic-wasm/releases/download/$IC_WASM_VERSION/ic-wasm-macos
cp ./ic-wasm-macos /usr/local/bin/ic-wasm
wget https://github.com/dfinity/motoko/releases/download/$MOC_VERSION/motoko-Linux-x86_64-$MOC_VERSION.tar.gz
tar zxvf motoko-Linux-x86_64-$MOC_VERSION.tar.gz
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
- name: Setup system subnet and start dfx
run: |
Expand Down
14 changes: 1 addition & 13 deletions collections/perf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ let imrc_hashmap_rs = wasm_profiling("rust/.dfx/local/canisters/imrc_hashmap/imr
let vector_rs = wasm_profiling("rust/.dfx/local/canisters/vector/vector.wasm", rs_config);
let vector_stable_rs = wasm_profiling("rust/.dfx/local/canisters/vector_stable/vector_stable.wasm", rs_config);

//let movm_rs = wasm_profiling("rust/.dfx/local/canisters/movm/movm.wasm");
//let movm_dynamic_rs = wasm_profiling("rust/.dfx/local/canisters/movm_dynamic/movm_dynamic.wasm");

let file = "README.md";

function perf(wasm, title, init, batch) {
Expand Down Expand Up @@ -66,6 +63,7 @@ function perf(wasm, title, init, batch) {
let init_size = 1_000_000;
let batch_size = 50;
output(file, "\n## Map\n\n| |binary_size|generate 1m|max mem|batch_get 50|batch_put 50|batch_remove 50|upgrade|\n|--:|--:|--:|--:|--:|--:|--:|--:|\n");

perf(hashmap, "hashmap", init_size, batch_size);
perf(triemap, "triemap", init_size, batch_size);
perf(rbtree, "rbtree", init_size, batch_size);
Expand Down Expand Up @@ -96,13 +94,3 @@ perf(heap_rs, "heap_rs", init_size, batch_size);
perf(heap_stable_rs, "heap_stable_rs", init_size, batch_size);
perf(vector_rs, "vec_rs", init_size, batch_size);
perf(vector_stable_rs, "vec_stable_rs", init_size, batch_size);

/*
let movm_size = 10000;
output(file, "\n## MoVM\n\n| |binary_size|generate 10k|max mem|batch_get 50|batch_put 50|batch_remove 50|\n|--:|--:|--:|--:|--:|--:|--:|\n");
perf(hashmap, "hashmap", movm_size);
perf(hashmap_rs, "hashmap_rs", movm_size);
perf(imrc_hashmap_rs, "imrc_hashmap_rs", movm_size);
perf(movm_rs, "movm_rs", movm_size);
perf(movm_dynamic_rs, "movm_dynamic_rs", movm_size);
*/
2 changes: 1 addition & 1 deletion crypto/perf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ let res2 = perf_sha(sha_rs, "Rust");
assert res1 == res2;

output(file, "\n## Certified map\n\n| |binary_size|generate 10k|max mem|inc|witness|upgrade|\n|--:|--:|--:|--:|--:|--:|--:|\n");
let init_size = 10_000;
let init_size = 1_000;
let res1 = perf_map(map_mo, "Motoko", init_size);
let res2 = perf_map(map_rs, "Rust", init_size);
// Cannot check for equality because witness is not unique
Expand Down
6 changes: 3 additions & 3 deletions utils.mk
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ endef
define perf
set -e; \
$(call prepare_perf,$(1)); \
ic-repl ../../$(1)/$(2); \
ic-repl -v ../../$(1)/$(2); \
du -h ../../_out
endef

define perf_two
set -e; \
$(call prepare_perf,$(1)); \
ic-repl ../../$(1)/$(2); \
ic-repl ../../$(1)/$(3); \
ic-repl -v ../../$(1)/$(2); \
ic-repl -v ../../$(1)/$(3); \
du -h ../../_out
endef
Loading