package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Functions

NewRandomGenerator returns a generator that generates random operations within some limits.
NewUniformKeyGen returns a key generator that generates keys with a uniform distribution.
NewZipfianKeyGen returns a key generator that generates reads and writes following a Zipfian distribution.
TestCreateWorkloadGenerator creates a simple uniform workload generator that will generate load events at the rate given.

# Structs

LoadEvent represent a key access that generates load against the database.
RandomGenerator generates random operations within some limits.

# Interfaces

Generator generates a workload where each op contains: key, op type (e.g., read/write), size.
KeyGenerator generates read and write keys.

# Type aliases

LoadBatch is a sorted list of load events.