Expand description
Simulate mechanism performance under realistic network conditions.
Enums§
Functions§
- calculate_
proposer_ region - Calculate which region a proposer belongs to based on their index
- calculate_
threshold - Calculate required count based on threshold
- can_
command_ advance - Check if a command would advance given current state (shared validation logic)
- count_
peers - Calculate total number of peers across all regions
- crate_
version - Returns the version of the crate.
- get_
latency_ data - Get latency data either by downloading or loading from cache
- mean
- Calculates the mean of a slice of f64 values
- median
- Calculates the median of a slice of f64 values Note: This function modifies the input slice by sorting it
- parse_
task - Parses a DSL task file into a vector of simulation commands
- std_dev
- Calculates the standard deviation of a slice of f64 values
- validate
- Validate a DSL task file can be executed