Returns the average (across streams) number of times that we end execution due to reaching the end of a particular stream.
(&self)
| 345 | /// Returns the average (across streams) number of times that we end execution due to reaching |
| 346 | /// the end of a particular stream. |
| 347 | pub(crate) fn average_stream_end_execs(&self) -> f64 { |
| 348 | if self.stream_exits.is_empty() { |
| 349 | return 1.0; |
| 350 | } |
| 351 | |
| 352 | let total_stream_exits: usize = self.stream_exits.values().sum(); |
| 353 | total_stream_exits as f64 / self.stream_exits.len() as f64 |
| 354 | } |
| 355 | |
| 356 | /// Returns a factor to use for length extension that attempts to increase the size of inputs |
| 357 | /// that regularly cause execution to stop. |
no test coverage detected