pub struct SimdJsonStats {
pub bytes_parsed: AtomicU64,
pub documents_parsed: AtomicU64,
pub parse_time_ns: AtomicU64,
pub parse_errors: AtomicU64,
}Expand description
Statistics for SIMD JSON parsing performance
Fields§
§bytes_parsed: AtomicU64Total bytes parsed
documents_parsed: AtomicU64Total documents parsed
parse_time_ns: AtomicU64Total parsing time in nanoseconds
parse_errors: AtomicU64Parse errors encountered
Implementations§
Source§impl SimdJsonStats
impl SimdJsonStats
Sourcepub fn throughput_mbps(&self) -> f64
pub fn throughput_mbps(&self) -> f64
Get throughput in MB/s
Sourcepub fn docs_per_second(&self) -> f64
pub fn docs_per_second(&self) -> f64
Get documents per second
Trait Implementations§
Source§impl Debug for SimdJsonStats
impl Debug for SimdJsonStats
Source§impl Default for SimdJsonStats
impl Default for SimdJsonStats
Source§fn default() -> SimdJsonStats
fn default() -> SimdJsonStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for SimdJsonStats
impl RefUnwindSafe for SimdJsonStats
impl Send for SimdJsonStats
impl Sync for SimdJsonStats
impl Unpin for SimdJsonStats
impl UnwindSafe for SimdJsonStats
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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