pub struct SpeedSummary {
pub tasks: usize,
pub runs: usize,
pub baseline_median_us: u64,
pub lean_ctx_median_us: u64,
pub tasks_faster: usize,
pub baseline_context_tokens: usize,
pub lean_ctx_context_tokens: usize,
pub baseline_passes: usize,
pub lean_ctx_passes: usize,
}Expand description
Derived from SpeedTasks only; verify recomputes it.
Fields§
§tasks: usize§runs: usize§baseline_median_us: u64Median over every measured request of the arm.
lean_ctx_median_us: u64§tasks_faster: usizeTasks whose lean-ctx median is below the baseline median.
baseline_context_tokens: usize§lean_ctx_context_tokens: usize§baseline_passes: usize§lean_ctx_passes: usizeImplementations§
Source§impl SpeedSummary
impl SpeedSummary
pub fn from_tasks(tasks: &[SpeedTask], runs: usize) -> Self
Sourcepub fn latency_reduction(&self) -> f64
pub fn latency_reduction(&self) -> f64
Share of median latency lean-ctx removed; negative when it was slower.
Sourcepub fn quality_held(&self) -> bool
pub fn quality_held(&self) -> bool
lean-ctx answered at least as many rounds correctly as the baseline.
Sourcepub fn is_headline(&self) -> bool
pub fn is_headline(&self) -> bool
Faster and not worse: the only result a headline surface may quote.
Trait Implementations§
Source§impl Clone for SpeedSummary
impl Clone for SpeedSummary
Source§impl Debug for SpeedSummary
impl Debug for SpeedSummary
Source§impl<'de> Deserialize<'de> for SpeedSummary
impl<'de> Deserialize<'de> for SpeedSummary
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SpeedSummary
impl PartialEq for SpeedSummary
Source§impl Serialize for SpeedSummary
impl Serialize for SpeedSummary
impl StructuralPartialEq for SpeedSummary
Auto Trait Implementations§
impl Freeze for SpeedSummary
impl RefUnwindSafe for SpeedSummary
impl Send for SpeedSummary
impl Sync for SpeedSummary
impl Unpin for SpeedSummary
impl UnsafeUnpin for SpeedSummary
impl UnwindSafe for SpeedSummary
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more