bench

package
v0.0.0-...-22430d5 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableTrace

func DisableTrace()

func EnableTrace

func EnableTrace()

Types

type Config

type Config struct {
	FsFile  *FsFile  `flagly:"handler"`
	RawDisk *RawDisk `flagly:"handler"`
}

func (*Config) FlaglyDesc

func (c *Config) FlaglyDesc() string

type FsFile

type FsFile struct {
	Trace     bool
	Mem       bool
	BenchCnt  int    `name:"count" desc:"bench size" default:"200"`
	BlockSize int    `name:"bs" desc:"block size" default:"200"`
	Stat      bool   `name:"stat"`
	RStat     bool   `name:"rstat"`
	Dir       string `desc:"test directory path" default:"/tmp/madq/bench/fsfile"`
}

func (*FsFile) BenchRead

func (cfg *FsFile) BenchRead(f *flow.Flow, volcfg *fs.VolumeConfig, expect []byte) error

func (*FsFile) BenchWrite

func (cfg *FsFile) BenchWrite(f *flow.Flow, volcfg *fs.VolumeConfig, buf []byte) error

func (*FsFile) FlaglyDesc

func (f *FsFile) FlaglyDesc() string

func (*FsFile) FlaglyHandle

func (cfg *FsFile) FlaglyHandle(f *flow.Flow) error

type RawDisk

type RawDisk struct {
	Fpath string `default:"/tmp/madq/bench/rawdisk"`
	BS    int    `default:"200"`
	Count int    `default:"200"`
}

func (*RawDisk) FlaglyHandle

func (r *RawDisk) FlaglyHandle(f *flow.Flow) error

Jump to

Keyboard shortcuts

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