Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadRandom ¶
ReadRandom reads b.N values in random key order.
func ReadSequential ¶
ReadSequential reads b.N values in sequential key order.
func WriteRandom ¶
WriteRandom writes b.N values in random key order.
func WriteSequential ¶
WriteSequential writes b.N values in sequential key order.
Types ¶
type Config ¶
type Config struct { Rand *RandomGenerator // St is the database to use. Initially it should be empty. St store.Store KeyLen int // size of each key ValueLen int // size of each value }
Config is a set of settings required to run a benchmark.
type RandomGenerator ¶
RandomGenerator is a helper for generating random data.
func NewRandomGenerator ¶
func NewRandomGenerator(seed int64, compressionRatio float64) *RandomGenerator
NewRandomGenerator returns a new generator of pseudo-random byte sequences seeded with the given value. Every N bytes produced by this generator can be compressed to (compressionRatio * N) bytes.
Click to show internal directories.
Click to hide internal directories.