|
1 | 1 | #!ic-repl
|
2 | 2 | load "../prelude.sh";
|
3 | 3 |
|
4 |
| -let hashmap = wasm_profiling("motoko/.dfx/local/canisters/hashmap/hashmap.wasm", record { start_page = 16 }); |
5 |
| -let triemap = wasm_profiling("motoko/.dfx/local/canisters/triemap/triemap.wasm", record { start_page = 16 }); |
6 |
| -let rbtree = wasm_profiling("motoko/.dfx/local/canisters/rbtree/rbtree.wasm", record { start_page = 16 }); |
7 |
| -let splay = wasm_profiling("motoko/.dfx/local/canisters/splay/splay.wasm", record { start_page = 16 }); |
8 |
| -let btree = wasm_profiling("motoko/.dfx/local/canisters/btreemap/btreemap.wasm", record { start_page = 16 }); |
9 |
| -let zhenya = wasm_profiling("motoko/.dfx/local/canisters/zhenya_hashmap/zhenya_hashmap.wasm", record { start_page = 16 }); |
10 |
| -let heap = wasm_profiling("motoko/.dfx/local/canisters/heap/heap.wasm", record { start_page = 16 }); |
11 |
| -let buffer = wasm_profiling("motoko/.dfx/local/canisters/buffer/buffer.wasm", record { start_page = 16 }); |
12 |
| -let vector = wasm_profiling("motoko/.dfx/local/canisters/vector/vector.wasm", record { start_page = 16 }); |
13 |
| - |
14 |
| -let hashmap_rs = wasm_profiling("rust/.dfx/local/canisters/hashmap/hashmap.wasm", record { start_page = 1 }); |
15 |
| -let btreemap_rs = wasm_profiling("rust/.dfx/local/canisters/btreemap/btreemap.wasm", record { start_page = 1 }); |
16 |
| -let btreemap_stable_rs = wasm_profiling("rust/.dfx/local/canisters/btreemap_stable/btreemap_stable.wasm", record { start_page = 1 }); |
17 |
| -let heap_rs = wasm_profiling("rust/.dfx/local/canisters/heap/heap.wasm", record { start_page = 1 }); |
18 |
| -let heap_stable_rs = wasm_profiling("rust/.dfx/local/canisters/heap_stable/heap_stable.wasm", record { start_page = 1 }); |
19 |
| -let imrc_hashmap_rs = wasm_profiling("rust/.dfx/local/canisters/imrc_hashmap/imrc_hashmap.wasm", record { start_page = 1 }); |
20 |
| -let vector_rs = wasm_profiling("rust/.dfx/local/canisters/vector/vector.wasm", record { start_page = 1 }); |
21 |
| -let vector_stable_rs = wasm_profiling("rust/.dfx/local/canisters/vector_stable/vector_stable.wasm", record { start_page = 1 }); |
| 4 | +// use smaller page_limit to speed things up, since the whole trace is too large even with 256M. |
| 5 | +let mo_config = record { start_page = 16; page_limit = 128 }; |
| 6 | +let hashmap = wasm_profiling("motoko/.dfx/local/canisters/hashmap/hashmap.wasm", mo_config); |
| 7 | +let triemap = wasm_profiling("motoko/.dfx/local/canisters/triemap/triemap.wasm", mo_config); |
| 8 | +let rbtree = wasm_profiling("motoko/.dfx/local/canisters/rbtree/rbtree.wasm", mo_config); |
| 9 | +let splay = wasm_profiling("motoko/.dfx/local/canisters/splay/splay.wasm", mo_config); |
| 10 | +let btree = wasm_profiling("motoko/.dfx/local/canisters/btreemap/btreemap.wasm", mo_config); |
| 11 | +let zhenya = wasm_profiling("motoko/.dfx/local/canisters/zhenya_hashmap/zhenya_hashmap.wasm", mo_config); |
| 12 | +let heap = wasm_profiling("motoko/.dfx/local/canisters/heap/heap.wasm", mo_config); |
| 13 | +let buffer = wasm_profiling("motoko/.dfx/local/canisters/buffer/buffer.wasm", mo_config); |
| 14 | +let vector = wasm_profiling("motoko/.dfx/local/canisters/vector/vector.wasm", mo_config); |
| 15 | + |
| 16 | +let rs_config = record { start_page = 1; page_limit = 128 }; |
| 17 | +let hashmap_rs = wasm_profiling("rust/.dfx/local/canisters/hashmap/hashmap.wasm", rs_config); |
| 18 | +let btreemap_rs = wasm_profiling("rust/.dfx/local/canisters/btreemap/btreemap.wasm", rs_config); |
| 19 | +let btreemap_stable_rs = wasm_profiling("rust/.dfx/local/canisters/btreemap_stable/btreemap_stable.wasm", rs_config); |
| 20 | +let heap_rs = wasm_profiling("rust/.dfx/local/canisters/heap/heap.wasm", rs_config); |
| 21 | +let heap_stable_rs = wasm_profiling("rust/.dfx/local/canisters/heap_stable/heap_stable.wasm", rs_config); |
| 22 | +let imrc_hashmap_rs = wasm_profiling("rust/.dfx/local/canisters/imrc_hashmap/imrc_hashmap.wasm", rs_config); |
| 23 | +let vector_rs = wasm_profiling("rust/.dfx/local/canisters/vector/vector.wasm", rs_config); |
| 24 | +let vector_stable_rs = wasm_profiling("rust/.dfx/local/canisters/vector_stable/vector_stable.wasm", rs_config); |
22 | 25 |
|
23 | 26 | //let movm_rs = wasm_profiling("rust/.dfx/local/canisters/movm/movm.wasm");
|
24 | 27 | //let movm_dynamic_rs = wasm_profiling("rust/.dfx/local/canisters/movm_dynamic/movm_dynamic.wasm");
|
|
0 commit comments