docs(ci): add docs to bench.yml (#11128)

This commit is contained in:
joshieDo
2024-09-23 16:31:33 +02:00
committed by GitHub
parent 15aee9b144
commit 07f5971ae1

View File

@ -1,4 +1,4 @@
# Runs benchmarks.
# Runs benchmarks on serialization/deserialization of storage values and keys.
on:
pull_request:
@ -48,13 +48,16 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref || 'main' }}
# On `main` branch, generates test vectors and serializes them to disk using `serde-json`.
- name: Generate test vectors
run: cargo run --bin reth --features dev -- test-vectors tables
# Runs iai and stores `main` baseline report for comparison later on $BASELINE.
- name: Save baseline
run: cargo bench -p reth-db --bench iai --profile profiling --features test-utils -- --save-baseline=$BASELINE
- name: Checkout PR
uses: actions/checkout@v4
with:
clean: false
# Runs iai on incoming merge using previously generated test-vectors and compares the report against `main` report.
- name: Compare PR benchmarks
run: cargo bench -p reth-db --bench iai --profile profiling --features test-utils -- --baseline=$BASELINE