pub struct ModelPerfResult {
pub id: Option<i64>,
pub model_id: i64,
pub run_id: Option<i64>,
pub pp_tps: f64,
pub tg_tps: f64,
pub pp_tokens: i64,
pub tg_tokens: i64,
pub backend: Option<String>,
pub ngl: Option<i64>,
pub context_size: Option<i64>,
pub repetitions: i64,
pub created_at: DateTime<Utc>,
}Expand description
Result of running llama-bench on a single model.
Fields§
§id: Option<i64>Database ID of this result row (set after persistence).
model_id: i64Foreign key → models.id.
run_id: Option<i64>Foreign key → benchmark_runs.id (nullable; SET NULL on run delete).
pp_tps: f64Prompt-processing throughput (tokens/sec).
tg_tps: f64Token-generation throughput (tokens/sec).
pp_tokens: i64Number of prompt tokens used in the benchmark.
tg_tokens: i64Number of generation tokens used in the benchmark.
backend: Option<String>Backend reported by llama-bench (e.g. “Metal”, “CUDA”, “CPU”).
ngl: Option<i64>Number of GPU layers offloaded.
context_size: Option<i64>Context size used.
repetitions: i64Number of repetitions averaged.
created_at: DateTime<Utc>UTC timestamp of this result.
Trait Implementations§
Source§impl Clone for ModelPerfResult
impl Clone for ModelPerfResult
Source§fn clone(&self) -> ModelPerfResult
fn clone(&self) -> ModelPerfResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ModelPerfResult
impl Debug for ModelPerfResult
Source§impl<'de> Deserialize<'de> for ModelPerfResult
impl<'de> Deserialize<'de> for ModelPerfResult
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
Auto Trait Implementations§
impl Freeze for ModelPerfResult
impl RefUnwindSafe for ModelPerfResult
impl Send for ModelPerfResult
impl Sync for ModelPerfResult
impl Unpin for ModelPerfResult
impl UnsafeUnpin for ModelPerfResult
impl UnwindSafe for ModelPerfResult
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