Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

use staked connection for bench-tps in net scripts #34767

Merged

Conversation

KirillLykov
Copy link
Contributor

Problem

After adding throttling to streamer bench-tps shows ~50tps. To fix this we use staked connection.

The same as #34749

Summary of Changes

@KirillLykov KirillLykov changed the title Klykov/net bench tps client use staked connection for bench-tps in net scripts Jan 12, 2024
clientCommand="\
solana-bench-tps \
--duration 7500 \
--sustained \
--threads $threadCount \
$benchTpsExtraArgs \
--read-client-keys ./client-accounts.yml \
--url "http://$entrypointIp:8899" \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In case if we use staked connection, we need to specify rpc address even if ThinClient is employed. This address is used to create RpcClient to check stake of the specified address and later another RpcClient is created. So I believe that there is no harm in specifying it always

@KirillLykov KirillLykov force-pushed the klykov/net-bench-tps-client-id branch from bdc6793 to c9afb39 Compare January 12, 2024 17:03
@KirillLykov KirillLykov force-pushed the klykov/net-bench-tps-client-id branch from c9afb39 to 0411016 Compare January 12, 2024 17:24
@KirillLykov
Copy link
Contributor Author

A side note, I tried TpuClient and ThinClient and the former outperforms the later always. Another observation is that TPS is very volatile now.

Copy link
Contributor

@pgarg66 pgarg66 left a comment

Choose a reason for hiding this comment

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

LGTM! Leaving it unapproved so that @apfitzge can review it as well.

Copy link
Contributor

@apfitzge apfitzge left a comment

Choose a reason for hiding this comment

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

lgtm

@KirillLykov KirillLykov merged commit 5a1a697 into solana-labs:master Jan 13, 2024
16 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants