mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-08 12:56:48 +00:00
Unify benchmark job name conventions
This commit is contained in:
parent
95bbc7f367
commit
185b27b01c
2
.github/workflows/benchmark_asterinas.yml
vendored
2
.github/workflows/benchmark_asterinas.yml
vendored
@ -185,7 +185,7 @@ jobs:
|
||||
run: |
|
||||
BENCHMARK_DIR=$(echo ${{ matrix.benchmark }} | sed 's/-/\//g')
|
||||
BENCHMARK_SUITE=$(echo $BENCHMARK_DIR | awk -F'/' '{print $1}')
|
||||
BENCHMARK_NAME=$(basename "$BENCHMARK_DIR")
|
||||
BENCHMARK_NAME=$(echo "$BENCHMARK_DIR" | sed -E 's|^[^/]+/||; s|/bench_results||g; s|/|_|g')
|
||||
BENCH_RESULT="test/benchmark/${BENCHMARK_DIR}/bench_result.json"
|
||||
[ -f "$BENCH_RESULT" ] || BENCH_RESULT="test/benchmark/${BENCHMARK_DIR}.json"
|
||||
ALERT_THRESHOLD=$(jq -r '.alert.threshold // "130%"' "$BENCH_RESULT")
|
||||
|
Loading…
x
Reference in New Issue
Block a user