Skip to main content

Crate foundry_bench

Crate foundry_bench 

Source
Expand description

Foundry benchmark runner.

Modules§

results

Structs§

BenchmarkProject
A benchmark project that represents a cloned repository ready for testing
RepoConfig
Configuration for repositories to benchmark

Constants§

RUNS
Default number of runs for benchmarks
WORKSPACE_ROOT 🔒
The workspace root, embedded at compile time. benches/ is one level below the workspace root.

Statics§

BENCHMARK_REPOS
FOUNDRY_VERSIONS
Foundry versions to benchmark

Functions§

default_benchmark_repos
Available repositories for benchmarking
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_version
Build and activate the local workspace via foundryup --path. Uses cargo’s incremental compilation so re-runs are fast.
switch_foundry_version
Switch to a specific foundry version.