Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 867 Bytes

README.md

File metadata and controls

37 lines (27 loc) · 867 Bytes

ssz-arena

The arena where ssz crates duke it out!

Installation

cargo build

Usage

Wall Time Benchmarking

cargo bench --bench wall_time

Allocation Benchmarking

cargo bench --bench alloc

Benchmarking Features

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.