The arena where ssz crates duke it out!
cargo build
cargo bench --bench wall_time
cargo bench --bench alloc
Beacon Block benchmarking with lighthouse and grandine crates:
cargo bench --bench <bench> --features block,sigp,grandine
Beacon State benchmarking with grandine:
cargo bench --bench <bench> --features state,grandine
By default, the suite will use the latest checkpoint state served on sync-mainnet.beaconcha.in.
However, the requests do add a bit of latency to the benchmarks. Users can override this by adding their own beacon-block.ssz
and beacon-state.ssz
files to the root directory.
This will perform decoding on the provided files.