Crate estimator

Source
Expand description

Simulate mechanism performance under realistic network conditions.

Enums§

Command
Threshold

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

Type Aliases§

Behavior
Distribution
Latencies
Region