Documentation ¶
Index ¶
Constants ¶
View Source
const ( BenchTypeRandWrite uint64 = 1 << 0 BenchTypeRandRead uint64 = 1 << 1 BenchTypeSeqWrite uint64 = 1 << 2 BenchTypeSeqRead uint64 = 1 << 3 BenchTypeNameRandWrite = "rand-write" BenchTypeNameRandRead = "rand-read" BenchTypeNameSeqWrite = "seq-write" BenchTypeNameSeqRead = "seq-read" )
Variables ¶
This section is empty.
Functions ¶
func ChartOutput ¶
func ChartOutput() error
func RandHexString ¶
Types ¶
type KeyValueBench ¶
type KeyValueBench struct {
// contains filtered or unexported fields
}
func NewKeyValueBench ¶
func NewKeyValueBench() (*KeyValueBench, error)
func (*KeyValueBench) Run ¶
func (it *KeyValueBench) Run(fn KeyValueBenchWorker) error
type KeyValueBenchWorker ¶
type KeyValueBenchWorker interface { Attrs() []string Write(key, value []byte) ResultStatus Read(key []byte) ResultStatus Clean() error }
type ResultStatus ¶
type ResultStatus int
const ( ResultOK ResultStatus = 1 ResultERR ResultStatus = 2 )
Click to show internal directories.
Click to hide internal directories.