pub struct NetBenefitInputs {
pub hit_rate_at_1_pct: f32,
pub prewarm_saved_ms: f64,
pub prewarm_wasted_ms: f64,
pub control_plane_ms: f64,
}Expand description
Inputs required to compute the net benefit of a ranker.
Fields§
§hit_rate_at_1_pct: f32Top-1 hit rate expressed as a percentage (0.0-100.0).
prewarm_saved_ms: f64Measured startup time saved on a correct PreWarm (ms).
prewarm_wasted_ms: f64Measured cost of a PreWarm that does not match the next app (ms).
control_plane_ms: f64DiPECS control-plane overhead per prediction (ms).
Implementations§
Source§impl NetBenefitInputs
impl NetBenefitInputs
Sourcepub fn placeholder_pending_measurement(
hit_rate_at_1_pct: f32,
prewarm_saved_ms: f64,
) -> Self
pub fn placeholder_pending_measurement( hit_rate_at_1_pct: f32, prewarm_saved_ms: f64, ) -> Self
Build provisional inputs whose prewarm_wasted_ms and
control_plane_ms are placeholders, not measurements.
Use this only for exploratory reporting. Measured gates must use
committed fixture inputs instead, via next_app_net_benefit_test.
Trait Implementations§
Source§impl Clone for NetBenefitInputs
impl Clone for NetBenefitInputs
Source§fn clone(&self) -> NetBenefitInputs
fn clone(&self) -> NetBenefitInputs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NetBenefitInputs
impl Debug for NetBenefitInputs
Source§impl From<&MeasuredNetBenefitInputs> for NetBenefitInputs
impl From<&MeasuredNetBenefitInputs> for NetBenefitInputs
Source§fn from(inputs: &MeasuredNetBenefitInputs) -> Self
fn from(inputs: &MeasuredNetBenefitInputs) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NetBenefitInputs
impl PartialEq for NetBenefitInputs
impl Copy for NetBenefitInputs
impl StructuralPartialEq for NetBenefitInputs
Auto Trait Implementations§
impl Freeze for NetBenefitInputs
impl RefUnwindSafe for NetBenefitInputs
impl Send for NetBenefitInputs
impl Sync for NetBenefitInputs
impl Unpin for NetBenefitInputs
impl UnsafeUnpin for NetBenefitInputs
impl UnwindSafe for NetBenefitInputs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more