dperf

package
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2023 License: AGPL-3.0 Imports: 22 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotImplemented = errors.New("not implemented")

ErrNotImplemented returned for platforms where dperf will not run.

Functions

This section is empty.

Types

type DrivePerf

type DrivePerf struct {
	Serial     bool
	Verbose    bool
	BlockSize  uint64
	FileSize   uint64
	IOPerDrive int
}

DrivePerf options

func (*DrivePerf) Run

func (d *DrivePerf) Run(ctx context.Context, paths ...string) (results []*DrivePerfResult, err error)

Run drive performance

func (*DrivePerf) RunAndRender added in v0.3.0

func (d *DrivePerf) RunAndRender(ctx context.Context, paths ...string) error

Run drive performance and render it

type DrivePerfResult

type DrivePerfResult struct {
	Path            string
	WriteThroughput uint64
	ReadThroughput  uint64
	Error           error
}

DrivePerfResult drive run result

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL