kvbench

package
v0.0.0-...-29d0efe Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: Apache-2.0 Imports: 15 Imported by: 3

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 RandBytes

func RandBytes(size int) []byte

func RandHexString

func RandHexString(length int) string

Types

type KeyValueBench

type KeyValueBench struct {
	// contains filtered or unexported fields
}

func NewKeyValueBench

func NewKeyValueBench() (*KeyValueBench, error)

func (*KeyValueBench) Run

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
)

Jump to

Keyboard shortcuts

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