pub struct MemOpBench { /* private fields */ }Expand description
Flagship memscan / memcpy-style variants for size-class HNEPs.
Implementations§
Source§impl MemOpBench
impl MemOpBench
Sourcepub fn for_target(topo: &TopologyGraph, target: CacheTarget) -> Self
pub fn for_target(topo: &TopologyGraph, target: CacheTarget) -> Self
Allocate for a cache target (src+dst each sized to the working set).
Sourcepub fn with_bytes(n: usize) -> Self
pub fn with_bytes(n: usize) -> Self
Exact working-set bytes.
Sourcepub fn run_scan_stride(&self) -> u64
pub fn run_scan_stride(&self) -> u64
Baseline: strided read checksum (scan).
Sourcepub fn run_scan_dense(&self) -> u64
pub fn run_scan_dense(&self) -> u64
Dense sequential scan.
Sourcepub fn run_copy_loop(&mut self) -> u64
pub fn run_copy_loop(&mut self) -> u64
Manual byte loop copy.
Sourcepub fn run_copy_unrolled8(&mut self) -> u64
pub fn run_copy_unrolled8(&mut self) -> u64
Unrolled 8-wide copy (scalar, stronger differentiation vs memcpy).
Auto Trait Implementations§
impl Freeze for MemOpBench
impl RefUnwindSafe for MemOpBench
impl Send for MemOpBench
impl Sync for MemOpBench
impl Unpin for MemOpBench
impl UnsafeUnpin for MemOpBench
impl UnwindSafe for MemOpBench
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
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