Documentation ¶
Overview ¶
Package graphstore contains common utilities for testing GraphStore implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BatchWriteBenchmark ¶
func BatchWriteBenchmark(b *testing.B, create CreateFunc, batchSize int)
BatchWriteBenchmark benchmarks the Write method of the given graphstore.Service. The number of updates per write is configured with batchSize.
Types ¶
type CreateFunc ¶
type CreateFunc func() (Service, DestroyFunc, error)
CreateFunc creates a temporary graphstore.Service with a corresponding function to destroy it completely.
type DestroyFunc ¶
type DestroyFunc func() error
DestroyFunc destroys its corresponding graphstore.Service returned from a CreateFunc.
Click to show internal directories.
Click to hide internal directories.