Skip to content

fix(style): correct typo for description text in cli (#452) #28

fix(style): correct typo for description text in cli (#452)

fix(style): correct typo for description text in cli (#452) #28

Workflow file for this run

name: Performance Benchmarks
on:
pull_request:
paths:
- 'crates/bench/**'
- 'crates/core/**'
- 'crates/types/**'
- '.github/workflows/benchmark.yml'
push:
branches:
- main
workflow_dispatch:
jobs:
benchmark:
name: Run Transaction Ingestion Benchmarks
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
issues: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Install gnuplot
run: sudo apt-get update && sudo apt-get install -y gnuplot
- name: Cache Cargo registry
uses: actions/cache@v4
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache Cargo index
uses: actions/cache@v4
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
- name: Cache build artifacts
uses: actions/cache@v4
with:
path: target
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
- name: Run benchmarks
run: cargo bench --bench transaction_ingestion -p surfpool-bench 2>&1 | tee benchmark.log
- name: Extract benchmark results
run: |
echo "## Benchmark Results" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Transaction Component Performance" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
if grep -q "time:" benchmark.log; then
echo '```' >> $GITHUB_STEP_SUMMARY
grep -E "(Benchmarking|time:|change:|No change)" benchmark.log >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
else
echo "Benchmark data not captured" >> $GITHUB_STEP_SUMMARY
fi
echo "" >> $GITHUB_STEP_SUMMARY
echo "Detailed HTML reports available in artifacts." >> $GITHUB_STEP_SUMMARY
- name: Upload benchmark results
if: always()
uses: actions/upload-artifact@v4
with:
name: benchmark-results
path: target/criterion
if-no-files-found: ignore