pub struct IndexMetrics {
pub resident_blocks: u64,
pub resident_bytes: u64,
pub puts: u64,
pub removes: u64,
pub prefix_scans: u64,
pub bytes_written: u64,
}Expand description
Comparable metrics every index backend can report.
Fields that do not apply to a backend (for example bytes_written for a pure
in-memory map) are reported as zero. These are the numbers Experiment mode
compares across backends: in-memory vs Holt (persistent ART) vs RocksDB (LSM
baseline) vs filesystem.
Fields§
§resident_blocks: u64§resident_bytes: u64§puts: u64§removes: u64§prefix_scans: u64§bytes_written: u64Bytes physically written to the backing store, for write-amplification studies. In-memory backends report 0.
Trait Implementations§
Source§impl Clone for IndexMetrics
impl Clone for IndexMetrics
Source§fn clone(&self) -> IndexMetrics
fn clone(&self) -> IndexMetrics
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 IndexMetrics
impl Debug for IndexMetrics
Source§impl Default for IndexMetrics
impl Default for IndexMetrics
Source§fn default() -> IndexMetrics
fn default() -> IndexMetrics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IndexMetrics
impl<'de> Deserialize<'de> for IndexMetrics
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
impl Eq for IndexMetrics
Source§impl PartialEq for IndexMetrics
impl PartialEq for IndexMetrics
Source§fn eq(&self, other: &IndexMetrics) -> bool
fn eq(&self, other: &IndexMetrics) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IndexMetrics
impl Serialize for IndexMetrics
impl StructuralPartialEq for IndexMetrics
Auto Trait Implementations§
impl Freeze for IndexMetrics
impl RefUnwindSafe for IndexMetrics
impl Send for IndexMetrics
impl Sync for IndexMetrics
impl Unpin for IndexMetrics
impl UnsafeUnpin for IndexMetrics
impl UnwindSafe for IndexMetrics
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