Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
87bbec2
trace only gc cost
chenyan-dfinity Feb 14, 2023
67eba9e
run wasm-opt over canisters
kentosugama Mar 13, 2023
0d83a94
typo
kentosugama Mar 13, 2023
3a57a7b
typo
kentosugama Mar 13, 2023
2645de7
typo
kentosugama Mar 13, 2023
6d466ca
typo
kentosugama Mar 13, 2023
153c37a
typo
kentosugama Mar 13, 2023
854f26d
bump moc
chenyan-dfinity Mar 13, 2023
7a3b932
fix loop
kentosugama Mar 13, 2023
5ad710a
typo
kentosugama Mar 13, 2023
01de576
typo
kentosugama Mar 13, 2023
df1ba54
update readme
chenyan-dfinity Mar 13, 2023
644996c
typo
kentosugama Mar 13, 2023
7f1cfb7
typo
kentosugama Mar 13, 2023
90783f8
fix loop
kentosugama Mar 13, 2023
860e711
fix loop
kentosugama Mar 13, 2023
be91970
makefiles are crazy
kentosugama Mar 13, 2023
3443819
Update gc
chenyan-dfinity Mar 13, 2023
5d9ce52
sync with bump branch
kentosugama Mar 14, 2023
791bfcc
typo
kentosugama Mar 14, 2023
4b2d1c0
fix attempt
kentosugama Mar 14, 2023
cea3035
try bash instead of Make
kentosugama Mar 14, 2023
fa0b2aa
false negative
kentosugama Mar 14, 2023
8c24839
debug
kentosugama Mar 14, 2023
15ef780
list canisters
kentosugama Mar 14, 2023
75a0793
try makefile loop
kentosugama Mar 14, 2023
b0795d5
typo
kentosugama Mar 14, 2023
b30d2f8
loop through canisters
kentosugama Mar 14, 2023
239e931
list wasm files
kentosugama Mar 14, 2023
09601f3
try wasm-opt
kentosugama Mar 14, 2023
a878b09
run wasm-opt on every suite
kentosugama Mar 14, 2023
af48694
profile level 3
kentosugama Mar 14, 2023
afe68ee
try to diff reports
chenyan-dfinity Mar 15, 2023
e8e07ef
fix
chenyan-dfinity Mar 15, 2023
3a94e41
trigger CI
chenyan-dfinity Mar 15, 2023
69e3c68
fix
chenyan-dfinity Mar 15, 2023
adca888
try
chenyan-dfinity Mar 16, 2023
fa8e801
fix
chenyan-dfinity Mar 16, 2023
df287e7
fix
chenyan-dfinity Mar 16, 2023
770b9db
fix
chenyan-dfinity Mar 16, 2023
509b9ee
fix
chenyan-dfinity Mar 16, 2023
941846f
fix
chenyan-dfinity Mar 16, 2023
04c4ea3
fix
chenyan-dfinity Mar 16, 2023
24cded5
fix
chenyan-dfinity Mar 16, 2023
082eedf
fix
chenyan-dfinity Mar 16, 2023
c2f9bf9
fix
chenyan-dfinity Mar 16, 2023
9811f0d
fix
chenyan-dfinity Mar 16, 2023
ef22cd3
fix
chenyan-dfinity Mar 16, 2023
7353396
fix
chenyan-dfinity Mar 16, 2023
a8d6cd9
merge bump branch to get diff script
kentosugama Mar 16, 2023
9a5194e
merge with main
kentosugama Mar 16, 2023
37a0f6e
fix
kentosugama Mar 16, 2023
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
6 changes: 3 additions & 3 deletions .github/workflows/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ def extract_header_for_each_table(html_text):
# Extract the tables from the HTML
table_regex = r'<table>(.*?)</table>'
tables = re.findall(table_regex, html_text, re.DOTALL)

# Find the nearest header that comes before each table
result = []
for table in tables:
# Find the index of the table in the HTML text
table_index = html_text.find(table)

# Find the nearest header by searching backwards
header_regex = r'<h(\d)>(.*?)</h\1>'
header_match = re.findall(header_regex, html_text[:table_index])[-1]
if header_match is None:
result.append("# Unknonw header")
continue # No header found before this table

# Extract the header text and level and add the header and table to the result
header_level = int(header_match[0])
header_text = header_match[1]
Expand Down
22 changes: 14 additions & 8 deletions .github/workflows/perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ jobs:
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
- name: Install wasm-opt
run: |
wget https://github.com/WebAssembly/binaryen/releases/download/version_112/binaryen-version_112-x86_64-linux.tar.gz
tar -xf binaryen-version_112-x86_64-linux.tar.gz
cp ./binaryen-version_112/bin/wasm-opt /usr/local/bin/.
chmod +x /usr/local/bin/wasm-opt
- name: Start dfx
run: |
dfx start --background
Expand All @@ -85,12 +91,12 @@ jobs:
path: ./DIFF.md
- name: Find diff comment
if: github.event_name == 'pull_request'
uses: peter-evans/find-comment@v2
uses: peter-evans/find-comment@v2
id: fc_diff
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: '<!-- diff comment -->'
comment-author: "github-actions[bot]"
body-includes: "<!-- diff comment -->"
- name: Create or update diff comment
if: github.event_name == 'pull_request'
uses: peter-evans/create-or-update-comment@v2
Expand All @@ -101,17 +107,17 @@ jobs:
<!-- diff comment -->
> **Note**
> Diffing the performance result against the published result from main branch

${{ steps.diff.outputs.content }}
edit-mode: replace
- name: Find performance comment
if: github.event_name == 'pull_request'
uses: peter-evans/find-comment@v2
id: fc
uses: peter-evans/find-comment@v2
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: '<!-- perf comment -->'
comment-author: "github-actions[bot]"
body-includes: "<!-- perf comment -->"
- name: Create or update performance comment
if: github.event_name == 'pull_request'
uses: peter-evans/create-or-update-comment@v2
Expand Down
4 changes: 4 additions & 0 deletions collections/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ motoko:
cd motoko; \
dfx canister create --all; \
dfx build; \
echo "Optimize with wasm-opt level 3"; \
for f in .dfx/local/canisters/*/*.wasm; do wasm-opt -O3 -o $$f $$f; done; \
cd ..

rust:
cd rust; \
dfx canister create --all; \
dfx build; \
echo "Optimize with wasm-opt level 3"; \
for f in .dfx/local/canisters/*/*.wasm; do wasm-opt -O3 -o $$f $$f; done; \
cd ..

build: motoko rust
Expand Down
4 changes: 4 additions & 0 deletions dapps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ motoko:
cd motoko; \
dfx canister create --all; \
dfx build; \
echo "Optimize with wasm-opt level 3"; \
for f in .dfx/local/canisters/*/*.wasm; do wasm-opt -O3 -o $$f $$f; done; \
cd ..

rust:
cd rust; \
dfx canister create --all; \
dfx build; \
echo "Optimize with wasm-opt level 3"; \
for f in .dfx/local/canisters/*/*.wasm; do wasm-opt -O3 -o $$f $$f; done; \
cd ..

build: motoko rust
Expand Down
2 changes: 2 additions & 0 deletions gc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ all: build perf
build:
dfx canister create --all; \
dfx build; \
echo "Optimize with wasm-opt level 3"; \
for f in .dfx/local/canisters/*/*.wasm; do wasm-opt -O3 -o $$f $$f; done; \
cd ..

perf:
Expand Down
4 changes: 4 additions & 0 deletions heartbeat/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ motoko:
cd motoko; \
dfx canister create --all; \
dfx build; \
echo "Optimize with wasm-opt level 3"; \
for f in .dfx/local/canisters/*/*.wasm; do wasm-opt -O3 -o $$f $$f; done; \
cd ..

rust:
cd rust; \
dfx canister create --all; \
dfx build; \
echo "Optimize with wasm-opt level 3"; \
for f in .dfx/local/canisters/*/*.wasm; do wasm-opt -O3 -o $$f $$f; done; \
cd ..

build: motoko rust
Expand Down
4 changes: 4 additions & 0 deletions pub-sub/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ motoko:
cd motoko; \
dfx canister create --all; \
dfx build; \
echo "Optimize with wasm-opt level 3"; \
for f in .dfx/local/canisters/*/*.wasm; do wasm-opt -O3 -o $$f $$f; done; \
cd ..

rust:
cd rust; \
dfx canister create --all; \
dfx build; \
echo "Optimize with wasm-opt level 3"; \
for f in .dfx/local/canisters/*/*.wasm; do wasm-opt -O3 -o $$f $$f; done; \
cd ..

build: motoko rust
Expand Down