Skip to content

Commit

Permalink
restore size
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyan-dfinity committed Oct 10, 2023
1 parent d64ae7f commit 1905ef7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions collections/perf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ function perf(wasm, title, init, batch) {
uninstall(cid);
};

let init_size = 500_000;
let init_size = 1_000_000;
let batch_size = 50;
output(file, "\n## Map\n\n| |binary_size|generate 500k|max mem|batch_get 50|batch_put 50|batch_remove 50|upgrade|\n|--:|--:|--:|--:|--:|--:|--:|--:|\n");
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 All @@ -73,7 +73,7 @@ perf(btreemap_rs, "btreemap_rs", init_size, batch_size);
perf(imrc_hashmap_rs, "imrc_hashmap_rs", init_size, batch_size);
perf(hashmap_rs, "hashmap_rs", init_size, batch_size);

output(file, "\n## Priority queue\n\n| |binary_size|heapify 500k|max mem|pop_min 50|put 50|pop_min 50|upgrade|\n|--:|--:|--:|--:|--:|--:|--:|--:|\n");
output(file, "\n## Priority queue\n\n| |binary_size|heapify 1m|max mem|pop_min 50|put 50|pop_min 50|upgrade|\n|--:|--:|--:|--:|--:|--:|--:|--:|\n");
perf(heap, "heap", init_size, batch_size);
perf(heap_rs, "heap_rs", init_size, batch_size);

Expand Down
6 changes: 2 additions & 4 deletions utils.mk
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,13 @@ define perf
set -e; \
$(call prepare_perf,$(1)); \
ic-repl ../../$(1)/$(2); \
du -h ../../_out; \
df -h
du -h ../../_out
endef

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

0 comments on commit 1905ef7

Please sign in to comment.