pub struct SavedTimeStats {
pub total_remote_duration_ms: u64,
pub estimated_local_duration_ms: u64,
pub time_saved_ms: u64,
pub builds_counted: usize,
pub avg_speedup: f64,
pub today_saved_ms: u64,
pub week_saved_ms: u64,
pub estimate_basis: String,
pub local_baseline_builds: usize,
}Expand description
Saved time statistics from remote builds.
Tracks estimated time savings from offloading builds to remote workers.
Estimates are only produced from an observed local baseline; without one the
stats carry measured remote durations with estimate_basis = "none" and
zero estimated savings rather than a fabricated speedup factor.
Fields§
§total_remote_duration_ms: u64Total time spent on remote builds (milliseconds).
estimated_local_duration_ms: u64Estimated total time if those builds ran locally (milliseconds). Zero when no local baseline exists.
time_saved_ms: u64Time saved by offloading (milliseconds). Computed as max(0, estimated_local - remote); zero without a baseline.
builds_counted: usizeNumber of remote builds included in calculation.
avg_speedup: f64Average speedup factor (local_estimate / remote_duration). A value of 2.0 means remote builds are ~2x faster than local. Zero when the estimate basis is “none”.
today_saved_ms: u64Total time saved today (milliseconds).
week_saved_ms: u64Total time saved this week (milliseconds).
estimate_basis: StringHow the local-time estimate was derived: “observed_local_mean” when successful local builds back the baseline, “none” otherwise.
local_baseline_builds: usizeNumber of successful local builds backing the baseline (0 for “none”).