Documentation ¶
Index ¶
- func CreateRandomState(store store.Store, count uint) ([]imap.InternalMessageID, error)
- func NewStore(name, path string) (store.Store, error)
- func NewStoreBenchmarkRunner(bench StoreBenchmark) benchmark.Benchmark
- func RegisterStoreBuilder(name string, storeBuilder StoreBuilder)
- func RunStoreWorkers(ctx context.Context, st store.Store, ...) *reporter.BenchmarkRun
- func RunStoreWorkersSplitRange(ctx context.Context, st store.Store, length uint, ...) *reporter.BenchmarkRun
- type BadgerStoreBuilder
- type Create
- type DefaultStoreBuilder
- type Delete
- type Get
- type StoreBenchmark
- type StoreBenchmarkRunner
- type StoreBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRandomState ¶
func NewStoreBenchmarkRunner ¶
func NewStoreBenchmarkRunner(bench StoreBenchmark) benchmark.Benchmark
func RegisterStoreBuilder ¶
func RegisterStoreBuilder(name string, storeBuilder StoreBuilder)
func RunStoreWorkers ¶
Types ¶
type BadgerStoreBuilder ¶
type BadgerStoreBuilder struct{}
type DefaultStoreBuilder ¶
type DefaultStoreBuilder struct{}
type StoreBenchmark ¶
type StoreBenchmark interface { // Name returns benchmark's name. Name() string // Setup should prepare the benchmark. Setup(ctx context.Context, store store.Store) error // TearDown should clean the benchmark. TearDown(ctx context.Context, store store.Store) error // Run the benchmark. Run(ctx context.Context, store store.Store) (*reporter.BenchmarkRun, error) }
type StoreBenchmarkRunner ¶
type StoreBenchmarkRunner struct {
// contains filtered or unexported fields
}
func (*StoreBenchmarkRunner) Name ¶
func (s *StoreBenchmarkRunner) Name() string
func (*StoreBenchmarkRunner) Run ¶
func (s *StoreBenchmarkRunner) Run(ctx context.Context) (*reporter.BenchmarkRun, error)
Click to show internal directories.
Click to hide internal directories.