Documentation ¶
Index ¶
Constants ¶
View Source
const ( KB = 1024 MB = 1024 * KB GB = 1024 * MB )
View Source
const ( DirectoryLength = 2 FilenameLength = 32 FileExtension = ".rand" )
Variables ¶
View Source
var (
RandomSampleSize int64 = 10 * MB
)
Functions ¶
This section is empty.
Types ¶
type AggregatedStatus ¶
type AggregatedStatus struct { Status Files int // Number of files transferred Errors int // Number of errors HistogramAvgRate *histogram.Histogram `json:"-"` }
func NewAggregatedStatus ¶
func NewAggregatedStatus() *AggregatedStatus
func (*AggregatedStatus) Add ¶
func (s *AggregatedStatus) Add(a Status)
func (*AggregatedStatus) Sum ¶
func (s *AggregatedStatus) Sum(a *AggregatedStatus)
type Benchmark ¶
type Benchmark struct {
// contains filtered or unexported fields
}
func (*Benchmark) Run ¶
func (b *Benchmark) Run() *BenchmarkStatus
func (*Benchmark) Status ¶
func (b *Benchmark) Status() *BenchmarkStatus
type BenchmarkStatus ¶
type BenchmarkStatus struct { RStatus *AggregatedStatus WStatus *AggregatedStatus }
func NewBenchmarkStatus ¶
func NewBenchmarkStatus() *BenchmarkStatus
type RandomReader ¶
type RandomReader struct {
// contains filtered or unexported fields
}
func NewRandomReader ¶
func NewRandomReader() *RandomReader
type Status ¶
type Worker ¶
type Worker struct { WStatus *AggregatedStatus RStatus *AggregatedStatus // contains filtered or unexported fields }
type WorkerConfig ¶
Click to show internal directories.
Click to hide internal directories.