These files drove the autotune session that produced the perf(crypto): eliminate per-call allocations in ChainContext.build PR against shop/world. They are extracted from the finalized branch so the PR diff is focused on the production code change.
bench_crypto_chain_context.rb— standalone Ruby benchmark. Inlines Sorbet (T) andSecretsshims, then loads the realaddress.rb,rewards_campaign.rb, andchain_context.rbfrom the monolith. Workload: 300,000 outer iterations × 3ChainContext.buildshapes (mainnet/no-bps, mainnet/300-bps, testnet) = 900,000 build calls. EmitsMETRIC total_µs=...,METRIC allocations=..., andMETRIC per_call_ns=...to stdout. No Rails boot.bench_crypto_chain_context_check.rb— correctness harness. Replays every assertion fromChainContextTest(10 assertions across 7 test cases) against the live sourc