Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Performance

Benchmarked on real-world networks from the KIOS-Research/EPANET-Benchmarks collection. Hydra is compiled with lto = "fat" and codegen-units = 1. Times are the minimum of 3 wall-clock runs.

NetworkNodesLinksStepsEPANETHydraRatio
Balerma44745437 ms5 ms0.78×
KY 82,4322,823289118 ms94 ms0.80×
KY 92,6503,042289120 ms76 ms0.63×
KY 103,2114,528289318 ms222 ms0.70×
Richmond87295828926 ms31 ms1.19×
D-Town4074591,441137 ms120 ms0.88×
L-TOWN7859092,035207 ms209 ms1.01×
BWSN212,52314,82297598 ms731 ms1.22×

Values < 1.0× mean Hydra is faster. Hydra matches or outperforms EPANET on most networks. The remaining gap on control-heavy networks (Richmond, BWSN2) is due to per-iteration overhead in Rust’s safe indexing model versus C pointer arithmetic.

For maximum local performance, build with native CPU target features:

just release-native