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
25 changes: 18 additions & 7 deletions .github/scripts/publish_bench_vs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,25 @@ fi
ETHREX_METRICS_FILE="bench_vs_artifacts/ethrex_metrics.txt"
ETHREX_SECTION=""
if [ -f "$ETHREX_METRICS_FILE" ]; then
ETHREX_TIME=$(grep '^ethrex_empty_block_time_s=' "$ETHREX_METRICS_FILE" | cut -d= -f2-)
ETHREX_CYCLES=$(grep '^ethrex_empty_block_cycles=' "$ETHREX_METRICS_FILE" | cut -d= -f2-)
if [ -n "$ETHREX_TIME" ]; then
ETHREX_MRKDWN="*Empty block:* ${ETHREX_TIME}s"
if [ -n "$ETHREX_CYCLES" ] && [ "$ETHREX_CYCLES" != "n/a" ]; then
ETHREX_MRKDWN="${ETHREX_MRKDWN} (${ETHREX_CYCLES} cycles)"
# Render one "*<label>:* <time>s (<cycles> cycles)" line per block.
ethrex_line() {
local label=$1 key=$2 t c
t=$(grep "^${key}_time_s=" "$ETHREX_METRICS_FILE" | cut -d= -f2-)
c=$(grep "^${key}_cycles=" "$ETHREX_METRICS_FILE" | cut -d= -f2-)
[ -z "$t" ] && return 0
local line="*${label}:* ${t}s"
if [ -n "$c" ] && [ "$c" != "n/a" ]; then
line="${line} (${c} cycles)"
fi
ETHREX_SECTION=',{"type":"divider"},{"type":"header","text":{"type":"plain_text","text":"Lambda VM - Ethrex Empty"}},{"type":"section","text":{"type":"mrkdwn","text":"'"$ETHREX_MRKDWN"'"}}'
printf '%s' "$line"
}
EMPTY_LINE=$(ethrex_line "Empty block" "ethrex_empty_block")
TX_LINE=$(ethrex_line "1 tx" "ethrex_1_tx")
ETHREX_MRKDWN=""
[ -n "$EMPTY_LINE" ] && ETHREX_MRKDWN="$EMPTY_LINE"
[ -n "$TX_LINE" ] && ETHREX_MRKDWN="${ETHREX_MRKDWN:+$ETHREX_MRKDWN\n}$TX_LINE"
if [ -n "$ETHREX_MRKDWN" ]; then
ETHREX_SECTION=',{"type":"divider"},{"type":"header","text":{"type":"plain_text","text":"Lambda VM - Ethrex"}},{"type":"section","text":{"type":"mrkdwn","text":"'"$ETHREX_MRKDWN"'"}}'
fi
fi

Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/bench-vs-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,12 @@ jobs:
--report-dir bench_vs_artifacts \
--no-color

- name: Restore cached ethrex.elf (TEMPORARY — until /opt/lambda-vm-sysroot is provisioned on the bench runner)
continue-on-error: true
run: |
mkdir -p executor/program_artifacts/rust
cp /home/app/cached_artifacts/ethrex.elf executor/program_artifacts/rust/ethrex.elf
ls -la executor/program_artifacts/rust/ethrex.elf
sha256sum executor/program_artifacts/rust/ethrex.elf

- name: Run ethrex empty block benchmark
- name: Run ethrex block benchmarks
continue-on-error: true
run: |
bash ./bench_vs/run_ethrex.sh \
--report-dir bench_vs_artifacts \
--rebuild-elf \
--no-color

- name: Upload nightly benchmark artifact
Expand Down
149 changes: 71 additions & 78 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading