Struct vps_bench::DiskCli[][src]

pub struct DiskCli {
    pub file_name: String,
    pub n: u32,
    pub block: u32,
    pub round: usize,
    pub shared: SharedCli,
}

测试 磁盘 的 读/写 性能

注意: 文件使用的大小为 1GB 的 2 ^ n 大小 {n} 块大小为 512 字节的 2 ^ block 大小

Fields

file_name: String

测试使用的文件名称{n} 注意: 如果这个文件存在则会被删除

n: u32

实际测试使用的文件大小为 2^n * 1GB

block: u32

实际测试使用的文件大小为 2^n * 512 B

round: usize

多少轮测试

shared: SharedCli

Implementations

impl DiskCli[src]

pub fn run(&self)[src]

运行磁盘性能测试

Trait Implementations

impl Debug for DiskCli[src]

impl StructOpt for DiskCli[src]

impl StructOptInternal for DiskCli[src]

Auto Trait Implementations

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> From<T> for T[src]

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

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>,