pub struct BenchResults {Show 13 fields
pub setup_time: Duration,
pub ingest_time: Duration,
pub tick_time: Duration,
pub query_time: Duration,
pub total_time: Duration,
pub docs_per_second: f64,
pub ticks_per_second: f64,
pub queries_per_second: f64,
pub total_nodes: usize,
pub total_edges: usize,
pub num_shards: u32,
pub num_documents: usize,
pub num_ticks: u64,
}Expand description
Results from a benchmark run.
Fields§
§setup_time: DurationTime to set up the cluster.
ingest_time: DurationTime to ingest all documents.
tick_time: DurationTime to run all ticks.
query_time: DurationTime to run all queries.
total_time: DurationTotal time.
docs_per_second: f64Documents per second during ingestion.
ticks_per_second: f64Ticks per second.
queries_per_second: f64Queries per second.
total_nodes: usizeTotal nodes across all shards.
total_edges: usizeTotal edges across all shards.
num_shards: u32Number of shards used.
num_documents: usizeNumber of documents ingested.
num_ticks: u64Number of ticks run.
Implementations§
Source§impl BenchResults
impl BenchResults
Sourcepub fn print_summary(&self)
pub fn print_summary(&self)
Print a formatted summary.
Sourcepub fn to_csv_row(&self) -> String
pub fn to_csv_row(&self) -> String
Return results as a CSV row.
Sourcepub fn csv_header() -> &'static str
pub fn csv_header() -> &'static str
Return CSV header.
Trait Implementations§
Source§impl Clone for BenchResults
impl Clone for BenchResults
Source§fn clone(&self) -> BenchResults
fn clone(&self) -> BenchResults
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 moreAuto Trait Implementations§
impl Freeze for BenchResults
impl RefUnwindSafe for BenchResults
impl Send for BenchResults
impl Sync for BenchResults
impl Unpin for BenchResults
impl UnsafeUnpin for BenchResults
impl UnwindSafe for BenchResults
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