Skip to content

Update rpc_bench to support fixed block ranges and file output#3110

Open
Kbhat1 wants to merge 2 commits intomainfrom
kartik/rpc-bench-range-output
Open

Update rpc_bench to support fixed block ranges and file output#3110
Kbhat1 wants to merge 2 commits intomainfrom
kartik/rpc-bench-range-output

Conversation

@Kbhat1
Copy link
Contributor

@Kbhat1 Kbhat1 commented Mar 23, 2026

Describe your changes and provide context

  • Add explicit start/end block selection to rpc_bench
  • Send output to configurable file location

Testing performed to validate your change

  • Verified on node

Add explicit start/end block selection so rpc_bench can benchmark deterministic historical windows, and mirror benchmark output to a caller-specified file for repeatable node-to-node comparisons.

Made-with: Cursor
@github-actions
Copy link

github-actions bot commented Mar 23, 2026

The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedMar 23, 2026, 9:07 PM

Replace the temporary output helpers with direct fmt.Printf and fmt.Fprintf calls while preserving -output-file by teeing process stdout and stderr to the requested file.

Made-with: Cursor
@codecov
Copy link

codecov bot commented Mar 23, 2026

Codecov Report

❌ Patch coverage is 0% with 116 lines in your changes missing coverage. Please review.
✅ Project coverage is 58.30%. Comparing base (491d2c6) to head (8c48573).

Files with missing lines Patch % Lines
sei-db/tools/rpc_bench/main.go 0.00% 116 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3110      +/-   ##
==========================================
- Coverage   58.60%   58.30%   -0.31%     
==========================================
  Files        2096     2096              
  Lines      173400   173497      +97     
==========================================
- Hits       101621   101149     -472     
- Misses      62739    63291     +552     
- Partials     9040     9057      +17     
Flag Coverage Δ
sei-chain-pr 0.00% <0.00%> (?)
sei-db 70.41% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
sei-db/tools/rpc_bench/main.go 0.00% <0.00%> (ø)

... and 20 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants