Expand description
Foundry benchmark runner.
Modulesยง
Structsยง
- Benchmark
Project - A benchmark project that represents a cloned repository ready for testing
- Repo
Config - Configuration for repositories to benchmark
Constantsยง
- DEFAULT_
LOCAL_ ๐BUILD_ PROFILE - FOUNDRY_
BINS ๐ - LOCAL_
BUILD_ ๐BINS_ ENV - LOCAL_
BUILD_ ๐PROFILE_ ENV - RUNS
- Default number of runs for benchmarks
- WORKSPACE_
ROOT ๐ - The workspace root, embedded at compile time.
benches/is one level below the workspace root. - WORKSPACE_
ROOT_ ๐ENV
Staticsยง
- BENCHMARK_
REPOS - FOUNDRY_
VERSIONS - Foundry versions to benchmark
Functionsยง
- activate_
local_ ๐binaries - default_
benchmark_ repos - Available repositories for benchmarking
- foundry_
bin_ ๐dir - get_
forge_ commit - Get the commit of the active Forge binary.
- get_
forge_ version - Get the current forge version
- get_
forge_ version_ details - Get the full forge version details including commit hash and date
- install_
local_ workspace - Build and activate the shipped Foundry binaries from an explicit workspace, without linking unused workspace binaries. Used to benchmark a baseline ref checked out into a separate worktree.
- local_
build_ ๐bins - local_
build_ ๐profile - mean ๐
- median ๐
- median_
index ๐ - parse_
forge_ ๐commit - parse_
version_ specs - Parse
--versionsentries into unique display names and optional source workspaces.name=pathbuilds Foundry frompathand labels itname. - stddev ๐
- switch_
foundry_ version - Switch to a specific foundry version.
- workspace_
root ๐