pub struct BenchmarkResult {
pub name: String,
pub iterations: u32,
pub total_ms: f64,
pub avg_ms: f64,
pub ops_per_sec: f64,
pub min_ms: f64,
pub max_ms: f64,
}Expand description
Benchmark result
Fields§
§name: String§iterations: u32§total_ms: f64§avg_ms: f64§ops_per_sec: f64§min_ms: f64§max_ms: f64Trait Implementations§
Source§impl FromNapiValue for BenchmarkResult
impl FromNapiValue for BenchmarkResult
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl ToNapiValue for BenchmarkResult
impl ToNapiValue for BenchmarkResult
Source§unsafe fn to_napi_value(
env: napi_env,
val: BenchmarkResult,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: BenchmarkResult, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for BenchmarkResult
impl TypeName for BenchmarkResult
Source§impl ValidateNapiValue for BenchmarkResult
impl ValidateNapiValue for BenchmarkResult
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
Safety Read more
Auto Trait Implementations§
impl Freeze for BenchmarkResult
impl RefUnwindSafe for BenchmarkResult
impl Send for BenchmarkResult
impl Sync for BenchmarkResult
impl Unpin for BenchmarkResult
impl UnsafeUnpin for BenchmarkResult
impl UnwindSafe for BenchmarkResult
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