Struct vps_bench::RAMCli[][src]

pub struct RAMCli {
    pub mem: u8,
    pub round: usize,
    pub shared: SharedCli,
}

内存性能测试

测试结果使用相对值进行比较,绝对值并没有什么实际意义。

mem 指定内存大小 {n} 注意: 实际使用的内存大小为: 2^mem * 128MB {n} 0 表示使用 128MB {n} 1 表示使用 256MB {n} 2 表示使用 512MB {n} 3 表示使用 1024MB=1GB {n} ... {n}

在相同的参数下,使用的时间越少越好

Fields

mem: u8

指定内存的大小

round: usize

多少轮测试

shared: SharedCli

Implementations

impl RAMCli[src]

pub fn run(&self, job_id: Option<String>, reporter: Option<BenchReport<'_>>)[src]

运行 RAM 测试

Trait Implementations

impl Debug for RAMCli[src]

impl From<&'_ QuickCli> for RAMCli[src]

impl StructOpt for RAMCli[src]

impl StructOptInternal for RAMCli[src]

Auto Trait Implementations

impl RefUnwindSafe for RAMCli

impl Send for RAMCli

impl Sync for RAMCli

impl Unpin for RAMCli

impl UnwindSafe for RAMCli

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,