Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Additionally, the repository of AlloyStack is integrated with GitHub Actions. Th
## Evaluation
### Cold start latency

The cold start of AlloyStack can be categorized into two scenarios: enabling and disabling on-demand loading. The approximate cold start latency is measured using the execution time of `hello_world` and `load_all`, respectively. The following script can be used to automate the testing process.
The cold start of AlloyStack can be categorized into two scenarios: enabling and disabling on-demand loading. The approximate cold start latency is measured using the execution time of `hello_world` and `load_all`, respectively. You have to set the `SUDO_PASSWD` environment variable before running this test using the command `export SUDO_PASSWD=<your_password>`, since some parts of the test require it. The following script can be used to automate the testing process.

```bash
AlloyStack$ just cold_start_latency
Expand Down
9 changes: 8 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,18 @@ init:
rustup override set 'nightly-2023-12-01'
rustup target add x86_64-unknown-linux-musl
[ -f fs_images/fatfs.img ] || unzip fs_images/fatfs.zip -d fs_images
[ -d image_content ] || mkdir image_content

asvisor:
cargo build {{ release_flag }}

cold_start_latency: asvisor all_libos
#!/bin/bash
if [ -z "$SUDO_PASSWD" ]; then
echo "Error: SUDO_PASSWD environment variable is not set"
echo "Please set it with: export SUDO_PASSWD=<your_password>" && exit 1
fi

just rust_func hello_world
just rust_func load_all
@-./scripts/del_tap.sh 2>/dev/null
Expand Down Expand Up @@ -197,7 +204,7 @@ py_end_to_end_latency: asvisor all_libos all_py_wasm
-sudo mount fs_images/fatfs.img image_content 2>/dev/null
sudo -E ./scripts/gen_data.py 1 '1 * 1024 * 1024' 1 '1 * 1024 * 1024'

sleep 3
sleep 5
@echo 'Python word count cost: '
target/{{profile}}/asvisor --files isol_config/wasmtime_cpython_wordcount_c1.json --metrics total-dur 2>&1 | grep 'total_dur'

Expand Down
Loading