Skip to content

Add RPC-count instrumentation harness for RPC load#719

Draft
konradkonrad wants to merge 1 commit into
mainfrom
bench/rpc-counts
Draft

Add RPC-count instrumentation harness for RPC load#719
konradkonrad wants to merge 1 commit into
mainfrom
bench/rpc-counts

Conversation

@konradkonrad

Copy link
Copy Markdown
Contributor

A JSON-RPC counting proxy sits between the tests and an ethclient/simulated backend and records how many times each method is invoked. Two tests use it to expose the RPC-call reduction of two optimization commits (B4 in medley/eventsyncer, S2 in keyperimpl/shutterservice/MultiEventSyncer) without touching production code. Test bodies only t.Log the counts, so the same source runs on both sides of the change and the numbers can be diffed by eye.

This is a utility for #717

A JSON-RPC counting proxy sits between the tests and an
ethclient/simulated backend and records how many times each method is
invoked. Two tests use it to expose the RPC-call reduction of two
optimization commits (B4 in medley/eventsyncer, S2 in
keyperimpl/shutterservice/MultiEventSyncer) without touching production
code. Test bodies only t.Log the counts, so the same source runs on both
sides of the change and the numbers can be diffed by eye.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant