Add 16 single-contract benchmarks from purplebench#11
Open
msooseth wants to merge 1 commit into
Open
Conversation
Flattened on-chain mainnet contracts (WETH9, UniswapV3Pool, Morpho, BoredApeYachtClub, ...) pulled from DanielVF/purplebench at commit ad8035580. Pragmas relaxed to >=0.8.24 where present so any newer solc compiles them. Each entry records its mainnet_address and is tagged purplebench, mainnet, single-contract. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
You could probably rename Vault to SimpleVaultExample, or remove it - it was intended to be an extremely minimal test for human bytecode reading. |
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.
Summary
benchmark_data/(WETH9, UniswapV3Pool, Morpho, BoredApeYachtClub, FiatTokenV2_2, Vault, PoolManager, TetherToken, EulerSwap, OETH, EtherfiLiquidityPool, RocketDepositPool, AaveV4HubInstance, ENSRegistryWithFallback, Poap, OCRConfigurationStoreEVMSimple).ad8035580b71937282d2a760c71a14b07dcfb483. Once that repo has a tag, we'll swap the SHA for the tag.>=0.8.24where present so any newer solc compiles them (onlyVaulthad an active pragma).mainnet_addressand is taggedpurplebench, mainnet, single-contract.Big thanks to @DanielVF for curating and flattening these contracts in purplebench.
Test plan
evmasmandirpipelines (32 builds, 0 errors).solc-bench list --benchmark-dir ./benchmark_datalists all 24 entries (8 existing + 16 new).solc-bench run --tags purplebench --iterations 1completes for all 16 contracts with bytecode produced.versionconvention is acceptable as a placeholder until purplebench tags a release.🤖 Generated with Claude Code