Skip to main content

Crate foundry_bench

Crate foundry_bench 

Source
Expand description

Foundry benchmark runner.

Modulesยง

results
symbolic
Formal symbolic benchmark suite definitions and result parsing.

Structsยง

BenchmarkProject
A benchmark project that represents a cloned repository ready for testing
RepoConfig
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 --versions entries into unique display names and optional source workspaces. name=path builds Foundry from path and labels it name.
stddev ๐Ÿ”’
switch_foundry_version
Switch to a specific foundry version.
workspace_root ๐Ÿ”’