Documentation ¶
Overview ¶
Package keyvalue contains utilities to test keyvalue DB implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewGraphStore = keyvalue.NewGraphStore
NewGraphStore re-exports keyvalue.NewGraphStore for tests
Functions ¶
func BatchWriteBenchmark ¶
func BatchWriteBenchmark(b *testing.B, create CreateFunc, batchSize int)
BatchWriteBenchmark benchmarks the Write method of the given keyvalue.DB. The number of updates per write is configured with batchSize.
func BatchWriteParallelBenchmark ¶
func BatchWriteParallelBenchmark(b *testing.B, create CreateFunc, batchSize int)
BatchWriteParallelBenchmark benchmarks the Write method of the given keyvalue.DB in parallel. The number of updates per write is configured with batchSize.
Types ¶
type CreateFunc ¶
type CreateFunc func() (DB, DestroyFunc, error)
CreateFunc creates a temporary keyvalue.DB with a corresponding function to destroy it completely.
type DestroyFunc ¶
type DestroyFunc func() error
DestroyFunc destroys its corresponding keyvalue.DB returned from a CreateFunc.
Click to show internal directories.
Click to hide internal directories.