Skip to content

Benchmarking gas costs for feature/livenet-logs #1051

Benchmarking gas costs for feature/livenet-logs

Benchmarking gas costs for feature/livenet-logs #1051

Workflow file for this run

name: Benchmark
on:
push:
branches:
- '**'
run-name: Benchmarking gas costs for ${{ github.head_ref || github.ref_name }}
jobs:
benchmark:
name: Benchmark
runs-on: buildjet-8vcpu-ubuntu-2204
steps:
- name: Setup just
uses: extractions/setup-just@v1
- name: Checkout code
uses: actions/checkout@v4
- name: Setup toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2025-01-01
target: wasm32-unknown-unknown
- name: Cache target
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target/debug/.fingerprint
target/debug/build
key: odra-cache
- name: Prepare test environment
run: just prepare-test-env
- name: Run benchmark
run: just benchmark
- name: Set benchmark filename
run: echo "BENCHMARK_FILENAME=${GITHUB_REF_NAME}" | sed 's:/:-:g' | sed 's:\.:-:g' >> $GITHUB_ENV
- name: Upload benchmark results
uses: actions/upload-artifact@v4
with:
name: ${{ env.BENCHMARK_FILENAME }}
path: benchmark/gas_report.json