pub struct BenchmarkResult {
pub operation: String,
pub duration_ms: f64,
pub throughput: f64,
pub memory_usage: usize,
pub success_rate: f32,
}
Expand description
Benchmark result for a specific operation
Fields§
§operation: String
Operation name
duration_ms: f64
Duration in milliseconds
throughput: f64
Throughput (operations per second)
memory_usage: usize
Memory usage in bytes
success_rate: f32
Success rate (0.0-1.0)
Trait Implementations§
Source§impl Clone for BenchmarkResult
impl Clone for BenchmarkResult
Source§fn clone(&self) -> BenchmarkResult
fn clone(&self) -> BenchmarkResult
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 moreAuto Trait Implementations§
impl Freeze for BenchmarkResult
impl RefUnwindSafe for BenchmarkResult
impl Send for BenchmarkResult
impl Sync for BenchmarkResult
impl Unpin for BenchmarkResult
impl UnwindSafe for BenchmarkResult
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