Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RPC bench threads to accounts-cluster-bench #34520

Merged
merged 1 commit into from
Jan 6, 2024

Conversation

sakridge
Copy link
Member

Problem

No way to benchmark the RPC subsystem while creating large numbers of accounts like with accounts-cluster-bench.

Summary of Changes

Add RPC benchmarking threads to accounts-cluster-bench which can query for the created accounts while the bench is running.

Fixes #

@sakridge sakridge force-pushed the accounts-cluster-rpc branch 5 times, most recently from a09f55c to 03b717f Compare December 19, 2023 17:35
Copy link

codecov bot commented Dec 19, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e877eef) 81.8% compared to head (b1190c4) 81.8%.
Report is 80 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #34520   +/-   ##
=======================================
  Coverage    81.8%    81.8%           
=======================================
  Files         822      822           
  Lines      221504   221504           
=======================================
+ Hits       181289   181343   +54     
+ Misses      40215    40161   -54     

Copy link
Contributor

@CriesofCarrots CriesofCarrots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks fine. Just a couple thoughts and questions.

accounts-cluster-bench/src/main.rs Show resolved Hide resolved
Comment on lines +354 to +357
if last_error.elapsed().as_secs() > 2 {
info!("get_slot error: {:?}", e);
last_error = Instant::now();
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe dedupe this into a closure or fn in case we want to twiddle the frequency or make other changes to all RpcBench variants?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can do this in a follow-up, requires some re-shuffling.

accounts-cluster-bench/src/main.rs Outdated Show resolved Hide resolved
accounts-cluster-bench/src/main.rs Outdated Show resolved Hide resolved
local-cluster/tests/local_cluster.rs Outdated Show resolved Hide resolved
accounts-cluster-bench/src/main.rs Outdated Show resolved Hide resolved
@github-actions github-actions bot added the stale [bot only] Added to stale content; results in auto-close after a week. label Jan 4, 2024
@github-actions github-actions bot removed the stale [bot only] Added to stale content; results in auto-close after a week. label Jan 5, 2024
@sakridge sakridge merged commit 709e934 into solana-labs:master Jan 6, 2024
34 checks passed
@sakridge sakridge deleted the accounts-cluster-rpc branch January 6, 2024 12:32
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.

3 participants