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

A benchmark suite for the getTokenAccountsByDelgate RPC call #3967

Merged
merged 1 commit into from
Dec 7, 2024

Conversation

steveluscher
Copy link

@steveluscher steveluscher commented Dec 6, 2024

Summary of changes

$ cargo run -- --identity ~/.config/solana/id.json --rpc-bench token-accounts-by-delegate  --iterations 0 --url l --mint 7z5aMSb5zfJThETMRgFFd3XNKKVcZGNtWQDS3qfgbQ2t --space 165
   Compiling solana-accounts-cluster-bench v2.2.0 (/home/sol/src/agave/accounts-cluster-bench)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.14s
     Running `/home/sol/src/agave/target/debug/solana-accounts-cluster-bench --identity /home/sol/.config/solana/id.json --rpc-bench token-accounts-by-delegate --iterations 0 --url l --mint 7z5aMSb5zfJThETMRgFFd3XNKKVcZGNtWQDS3qfgbQ2t --space 165`
[2024-12-06T01:05:31.012863748Z INFO  solana_accounts_cluster_bench] Targeting http://localhost:8899
[2024-12-06T01:05:31.016197893Z INFO  solana_accounts_cluster_bench] Starting balance(s): [718145422400]
[2024-12-06T01:05:31.017179801Z INFO  solana_accounts_cluster_bench] creating 4 new
[2024-12-06T01:05:31.021272199Z INFO  solana_accounts_cluster_bench] txs: 4
[2024-12-06T01:05:31.062907567Z INFO  solana_accounts_cluster_bench] ids: 4
[2024-12-06T01:05:31.564160162Z INFO  solana_accounts_cluster_bench] creating 4 new
[2024-12-06T01:05:31.564976616Z INFO  solana_accounts_cluster_bench] txs: 4
[2024-12-06T01:05:31.605414505Z INFO  solana_accounts_cluster_bench] ids: 4
[2024-12-06T01:05:32.106789663Z INFO  solana_accounts_cluster_bench] creating 4 new
[2024-12-06T01:05:32.107582893Z INFO  solana_accounts_cluster_bench] txs: 4
[2024-12-06T01:05:32.150043280Z INFO  solana_accounts_cluster_bench] ids: 4
[2024-12-06T01:05:32.651000392Z INFO  solana_accounts_cluster_bench] creating 4 new
[2024-12-06T01:05:32.651800194Z INFO  solana_accounts_cluster_bench] txs: 4
[2024-12-06T01:05:32.692611503Z INFO  solana_accounts_cluster_bench] ids: 4
[2024-12-06T01:05:33.194350592Z INFO  solana_accounts_cluster_bench] creating 4 new
[2024-12-06T01:05:33.195187324Z INFO  solana_accounts_cluster_bench] txs: 4
[2024-12-06T01:05:33.236360613Z INFO  solana_accounts_cluster_bench] ids: 4
[2024-12-06T01:05:33.738255507Z INFO  solana_accounts_cluster_bench] creating 4 new
[2024-12-06T01:05:33.739078343Z INFO  solana_accounts_cluster_bench] txs: 4
[2024-12-06T01:05:33.780435942Z INFO  solana_accounts_cluster_bench] ids: 4
[2024-12-06T01:05:34.281336383Z INFO  solana_accounts_cluster_bench] creating 4 new
[2024-12-06T01:05:34.282189957Z INFO  solana_accounts_cluster_bench] txs: 4
[2024-12-06T01:05:34.323126104Z INFO  solana_accounts_cluster_bench] ids: 4
[2024-12-06T01:05:34.323154438Z INFO  solana_accounts_cluster_bench] total_accounts_created: 28 total_accounts_closed: 0 tx_sent_count: 28 loop_count: 7 balance(s): [718088042560]
[2024-12-06T01:05:34.824283523Z INFO  solana_accounts_cluster_bench] creating 4 new
[2024-12-06T01:05:34.825108944Z INFO  solana_accounts_cluster_bench] txs: 4
[2024-12-06T01:05:34.865839410Z INFO  solana_accounts_cluster_bench] ids: 4
[2024-12-06T01:05:35.137528575Z INFO  solana_accounts_cluster_bench] t(0) rpc(TokenAccountsByDelegate) iters: 32 success: 33 errors: 0
[2024-12-06T01:05:35.137581886Z INFO  solana_accounts_cluster_bench]  t(0) rpc(TokenAccountsByDelegate average success_time: 124832 us

Related: #3242.

spl_token::instruction::approve(
&spl_token::id(),
&to_pubkey,
&base_keypair.pubkey(),
Copy link
Author

Choose a reason for hiding this comment

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

Added this key as the delegate of its own token account, so that the fetch would turn something up.

@steveluscher steveluscher force-pushed the token-by-delegate-bench branch 3 times, most recently from 9d12a07 to 247ddf0 Compare December 6, 2024 06:38
@steveluscher steveluscher force-pushed the token-by-delegate-bench branch from 247ddf0 to 4af60cc Compare December 6, 2024 18:10
@steveluscher steveluscher merged commit 48e8cf5 into anza-xyz:master Dec 7, 2024
40 checks passed
@steveluscher steveluscher deleted the token-by-delegate-bench branch December 7, 2024 06:45
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