-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jorge Prendes <[email protected]>
- Loading branch information
Showing
1 changed file
with
44 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,6 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Fetch submodules | ||
run: git submodule update --init --recursive | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
rustflags: '' #Disable. By default this action sets environment variable is set to -D warnings. We manage this in the Makefile | ||
|
@@ -54,14 +52,56 @@ jobs: | |
# Automatically push the benchmark result to gh-pages branch | ||
# See https://github.com/benchmark-action/github-action-benchmark?tab=readme-ov-file#charts-on-github-pages-1 for more details | ||
auto-push: ${{ github.event_name == 'schedule' }} | ||
|
||
benchmark-mem: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
rustflags: '' #Disable. By default this action sets environment variable is set to -D warnings. We manage this in the Makefile | ||
- name: Setup build environment | ||
shell: bash | ||
run: | | ||
os=$(echo "$RUNNER_OS" | tr '[:upper:]' '[:lower:]') | ||
./scripts/setup-$os.sh | ||
- name: Build and load shims and wasi-demo-app | ||
shell: bash | ||
run: | | ||
make OPT_PROFILE=release build install test-image load test-image/oci load/oci | ||
- name: Run Benchmarks | ||
shell: bash | ||
run: | | ||
set -euxo pipefail | ||
for RUNTIME in wasmtime wasmedge wasmer wamr; do | ||
./scripts/benchmark-mem.sh $RUNTIME > bench-mem-$RUNTIME.json | ||
done | ||
cat bench-mem-* | jq -s 'flatten(1)' > bench-mem.json | ||
- name: Store benchmark result | ||
uses: benchmark-action/[email protected] | ||
with: | ||
name: Criterion.rs Benchmark | ||
tool: 'cargo' | ||
output-file-path: bench-mem.json | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
# my experimental local benchmarking seems to have a 20% margin of error. | ||
# So I set the alert threshold to 130% of the previous benchmark result. | ||
# If the current benchmark result is more than 130% of the previous benchmark result, it will fail. | ||
alert-threshold: '130%' | ||
fail-on-alert: ${{ github.event_name == 'schedule' }} | ||
alert-comment-cc-users: '@runwasi-committers' | ||
# Enable Job Summary | ||
summary-always: true | ||
# Automatically push the benchmark result to gh-pages branch | ||
# See https://github.com/benchmark-action/github-action-benchmark?tab=readme-ov-file#charts-on-github-pages-1 for more details | ||
auto-push: ${{ github.event_name == 'schedule' }} | ||
|
||
benchmark-http: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Fetch submodules | ||
run: git submodule update --init --recursive | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
rustflags: '' #Disable. By default this action sets environment variable is set to -D warnings. We manage this in the Makefile | ||
|