pub struct JavascriptBenchmarkReport {
pub generated_at_unix_ms: u128,
pub config: JavascriptBenchmarkConfig,
pub host: BenchmarkHost,
pub repo_root: PathBuf,
pub transport_rtt: Vec<BenchmarkTransportRttReport>,
pub scenarios: Vec<BenchmarkScenarioReport>,
}Fields§
§generated_at_unix_ms: u128§config: JavascriptBenchmarkConfig§host: BenchmarkHost§repo_root: PathBuf§transport_rtt: Vec<BenchmarkTransportRttReport>§scenarios: Vec<BenchmarkScenarioReport>Implementations§
Source§impl JavascriptBenchmarkReport
impl JavascriptBenchmarkReport
pub fn render_markdown(&self) -> String
pub fn render_markdown_with_comparison( &self, comparison: Option<&BenchmarkComparison>, ) -> String
pub fn render_json(&self) -> Result<String, Error>
pub fn render_json_with_comparison( &self, comparison: Option<&BenchmarkComparison>, ) -> Result<String, Error>
pub fn write_artifacts( &self, output_dir: &Path, ) -> Result<JavascriptBenchmarkArtifactPaths, JavascriptBenchmarkError>
pub fn write_artifacts_with_comparison( &self, output_dir: &Path, comparison: Option<&BenchmarkComparison>, ) -> Result<JavascriptBenchmarkArtifactPaths, JavascriptBenchmarkError>
pub fn compare_to_baseline_path( &self, baseline_path: &Path, ) -> Result<BenchmarkComparison, JavascriptBenchmarkError>
Trait Implementations§
Source§impl Clone for JavascriptBenchmarkReport
impl Clone for JavascriptBenchmarkReport
Source§fn clone(&self) -> JavascriptBenchmarkReport
fn clone(&self) -> JavascriptBenchmarkReport
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 JavascriptBenchmarkReport
impl Debug for JavascriptBenchmarkReport
Source§impl PartialEq for JavascriptBenchmarkReport
impl PartialEq for JavascriptBenchmarkReport
Source§fn eq(&self, other: &JavascriptBenchmarkReport) -> bool
fn eq(&self, other: &JavascriptBenchmarkReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for JavascriptBenchmarkReport
Auto Trait Implementations§
impl Freeze for JavascriptBenchmarkReport
impl RefUnwindSafe for JavascriptBenchmarkReport
impl Send for JavascriptBenchmarkReport
impl Sync for JavascriptBenchmarkReport
impl Unpin for JavascriptBenchmarkReport
impl UnsafeUnpin for JavascriptBenchmarkReport
impl UnwindSafe for JavascriptBenchmarkReport
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