bench 268: minimal RPC profile (150 draws a day, no sandwich screen, fail-rate blocks per chain) - #2536
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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=0turns the screen off and skips the pool neighbourhood read when the exact mid is known;FAIL_SCAN_BLOCKSsets 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_EVERYpolls 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