benchmark

package
v0.0.0-...-d177ebe Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2016 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnalyzeBenchmarkRuns

func AnalyzeBenchmarkRuns(label string, times []float64)

func BulkStat

func BulkStat(parallelism int, files []string) float64

Used for benchmarking. Returns milliseconds.

func CountCpus

func CountCpus() int

func ReadLines

func ReadLines(name string) []string

func RunBulkStat

func RunBulkStat(runs int, threads int, sleepTime time.Duration, files []string) (results []float64)

Types

type LatencyMap

type LatencyMap struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewLatencyMap

func NewLatencyMap() *LatencyMap

func (*LatencyMap) Add

func (m *LatencyMap) Add(name string, dt time.Duration)

func (*LatencyMap) Counts

func (m *LatencyMap) Counts() map[string]int

func (*LatencyMap) Get

func (m *LatencyMap) Get(name string) (count int, dt time.Duration)

type StatFs

type StatFs struct {
	pathfs.FileSystem
	// contains filtered or unexported fields
}

func NewStatFs

func NewStatFs() *StatFs

func (*StatFs) Add

func (me *StatFs) Add(name string, a *fuse.Attr)

func (*StatFs) AddFile

func (me *StatFs) AddFile(name string)

func (*StatFs) GetAttr

func (me *StatFs) GetAttr(name string, context *fuse.Context) (*fuse.Attr, fuse.Status)

func (*StatFs) OpenDir

func (me *StatFs) OpenDir(name string, context *fuse.Context) (stream []fuse.DirEntry, status fuse.Status)

Jump to

Keyboard shortcuts

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