pub struct ParserMetrics {
pub parser_name: String,
pub processing_time: Duration,
pub commands_per_second: f64,
pub characters_per_second: f64,
pub tokens_per_second: f64,
pub throughput_mb_per_second: f64,
pub command_count: u64,
pub character_count: u64,
pub average_complexity: f64,
}
Expand description
Parser performance metrics
Fields§
§parser_name: String
Parser name
processing_time: Duration
Processing time
commands_per_second: f64
Commands processed per second
characters_per_second: f64
Characters processed per second
tokens_per_second: f64
Tokens processed per second (estimated)
throughput_mb_per_second: f64
Throughput in MB/s
command_count: u64
Total commands processed
character_count: u64
Total characters processed
average_complexity: f64
Average command complexity
Implementations§
Source§impl ParserMetrics
impl ParserMetrics
Sourcepub fn commands_description(&self) -> String
pub fn commands_description(&self) -> String
Get human-readable commands per second description
Sourcepub fn tokens_description(&self) -> String
pub fn tokens_description(&self) -> String
Get human-readable tokens per second description
Sourcepub fn throughput_description(&self) -> String
pub fn throughput_description(&self) -> String
Get human-readable throughput description
Sourcepub fn to_markdown(&self) -> String
pub fn to_markdown(&self) -> String
Generate markdown report for parser metrics
Trait Implementations§
Source§impl Clone for ParserMetrics
impl Clone for ParserMetrics
Source§fn clone(&self) -> ParserMetrics
fn clone(&self) -> ParserMetrics
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 ParserMetrics
impl RefUnwindSafe for ParserMetrics
impl Send for ParserMetrics
impl Sync for ParserMetrics
impl Unpin for ParserMetrics
impl UnwindSafe for ParserMetrics
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