Skip to main content

Module context

Module context 

Source
Expand description

This contains the BenchContext, which is information that all replay-based benchmarks need. The initialization code is also the same, so this can be shared across benchmark commands.

Structsยง

BenchContext ๐Ÿ”’
This is intended to be used by benchmarks that replay blocks from an RPC.

Functionsยง

derive_big_blocks_initial_state ๐Ÿ”’
Derives the initial state for big blocks benchmark from RPC of the local node.
fetch_recent_block_hashes ๐Ÿ”’