Skip to content

bench 268: minimal RPC profile (150 draws a day, no sandwich screen, fail-rate blocks per chain) - #2536

Merged
Flotapponnier merged 1 commit into
devfrom
feat/tfq-minimal-rpc
Sep 19, 2026
Merged

Flotapponnier merged 1 commit into
devfrom
feat/tfq-minimal-rpc

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

The bench made about 146,000 RPC calls a day (4.4 M a month): 29,000 Solana reads on Helius's free tier (0.9 of 1 M credits), 31,000 on Alchemy's free BNB app (18 M of 30 M CU), 44,000 on QuickNode for Robinhood Chain (about 27 M credits). Most of it was comfort: 400 swaps a day per Solana terminal against a publication threshold of 50, 1,000 per EVM row against a chain floor of 25, a sandwich screen nobody sees in the table, and 27,000 blocks a day read in full for the EVM fail rate.

Three knobs, all environment: SANDWICH=0 turns the screen off and skips the pool neighbourhood read when the exact mid is known; FAIL_SCAN_BLOCKS sets the blocks read in full per chain (0 = no fail rate on that chain's event-fed rows; Binance's rows keep a few, the block sample is their feed); NATIVE_POLL_EVERY polls the EVM logs every N ticks. Production goes to 150 draws a day per row, no sandwich, bnb 3 / base 2 / ethereum 1 / robinhood 0 blocks, logs every 3 ticks: about 27,000 calls a day, 0.8 M a month, inside every free tier with a wide margin.

What changes on the site: nothing systematic on the medians (the draw is random, only the interval widens, about 1.6x); the Failed swaps column is blank on the EVM rows of GMGN, Axiom and BasedBot (Solana's stays exhaustive through the WebSocket, Binance's keeps its block sample); no sandwich screen in the JSON.

Deploy: harness (recipe defaults updated).

🤖 Generated with Claude Code

https://claude.ai/code/session_01L4rjxemTvgRwrCG6D2iK5D

…ghbour screen, no neighbourhood read when the exact mid is known), FAIL_SCAN_BLOCKS per chain, NATIVE_POLL_EVERY ticks; production moves to 150 draws a day per row, no sandwich, fail-rate blocks bnb 3 / base 2 / ethereum 1 / robinhood 0, EVM logs every 3 ticks: about 27,000 calls a day instead of 146,000

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L4rjxemTvgRwrCG6D2iK5D
@Flotapponnier
Flotapponnier merged commit dc287d4 into dev Sep 19, 2026
1 check failed
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.

2 participants