-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
adb2995
commit e1c651e
Showing
39 changed files
with
100 additions
and
1,550 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
#!/bin/bash | ||
|
||
cd tests/fs_benchmark_test | ||
set -e | ||
|
||
cd tests/canister_initial | ||
|
||
cargo build --release --target wasm32-unknown-unknown | ||
|
||
wasi2ic target/wasm32-unknown-unknown/release/fs_benchmark_test_backend.wasm target/wasm32-unknown-unknown/release/fs_benchmark_test_backend_small.wasm | ||
wasi2ic target/wasm32-unknown-unknown/release/canister_initial_backend.wasm target/wasm32-unknown-unknown/release/canister_initial_backend_small.wasm | ||
|
||
cd ../demo_test_upgraded | ||
cd ../canister_upgraded | ||
|
||
cargo build --release --target wasm32-unknown-unknown | ||
|
||
wasi2ic target/wasm32-unknown-unknown/release/demo_test_upgraded_backend.wasm target/wasm32-unknown-unknown/release/demo_test_upgraded_backend_small.wasm | ||
wasi2ic target/wasm32-unknown-unknown/release/canister_upgraded_backend.wasm target/wasm32-unknown-unknown/release/canister_upgraded_backend_small.wasm | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
#!/bin/bash | ||
|
||
cd tests/fs_benchmark_test | ||
set -e | ||
|
||
dfx canister create fs_benchmark_test_backend | ||
cd tests/canister_initial | ||
|
||
dfx canister install --mode reinstall --wasm target/wasm32-unknown-unknown/release/fs_benchmark_test_backend_small.wasm -y fs_benchmark_test_backend | ||
dfx canister create canister_initial_backend | ||
|
||
dfx canister install --mode reinstall --wasm target/wasm32-unknown-unknown/release/canister_initial_backend_small.wasm -y canister_initial_backend | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
22 changes: 11 additions & 11 deletions
22
tests/fs_benchmark_test/Cargo.lock → tests/canister_initial/Cargo.lock
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
tests/fs_benchmark_test/Cargo.toml → tests/canister_initial/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[workspace] | ||
members = [ | ||
"src/fs_benchmark_test_backend" | ||
"src/canister_initial_backend" | ||
] | ||
resolver = "2" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
dfx canister call canister_initial_backend clear_buffer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
dfx canister call canister_initial_backend append_buffer '("abc1234567", 10_000_000: nat64, 100_000_000: nat64 )' | ||
|
||
|
6 changes: 3 additions & 3 deletions
6
tests/fs_benchmark_test/dfx.json → tests/canister_initial/dfx.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
dfx canister call canister_initial_backend load_buffer '("test.txt")' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
dfx canister call canister_initial_backend read_buffer '(99999988:nat64, 10:nat64)' |
2 changes: 1 addition & 1 deletion
2
.../src/fs_benchmark_test_backend/Cargo.toml → ...l/src/canister_initial_backend/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
dfx canister call canister_initial_backend store_buffer '("test.txt")' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
dfx canister call canister_initial_backend store_buffer '("test.txt")' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
dfx canister call canister_initial_backend store_buffer '("mount_file.txt")' |
File renamed without changes.
22 changes: 11 additions & 11 deletions
22
tests/demo_test_upgraded/Cargo.lock → tests/canister_upgraded/Cargo.lock
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
tests/demo_test_upgraded/Cargo.toml → tests/canister_upgraded/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[workspace] | ||
members = [ | ||
"src/demo_test_upgraded_backend" | ||
"src/canister_upgraded_backend" | ||
] | ||
resolver = "2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...src/demo_test_upgraded_backend/Cargo.toml → .../src/canister_upgraded_backend/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Submodule fs_benchmarks
added at
6a6771
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.