Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PerOpSeconds represents metric of seconds per operation PerOpSeconds = "bblfsh_bench_seconds" // PerOpAllocBytes represents metric of bytes allocated per operation PerOpAllocBytes = "bblfsh_bench_allocs_bytes" // PerOpAllocs represents metric of allocations per operation PerOpAllocs = "bblfsh_bench_allocs" )
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(kind string, c Constructor)
Register updates the map of known storage clients constructors
Types ¶
type Client ¶
type Client interface { // Dump stores given benchmark results with tags to storage Dump(tags map[string]string, benchmarks ...performance.Benchmark) error // Close closes client's connection to the storage if needed Close() error }
Client is an interface for storage clients
type Constructor ¶
Constructor is a type that represents function of default storage client Constructor
func ValidateKind ¶
func ValidateKind(kind string) (Constructor, error)
ValidateKind checks if a given kind is supported This method should be useful when long-term tests are performed so kind can be checked much earlier then storage client acquired and prevent the situation when tests passed and store failed because kind is not supported
Click to show internal directories.
Click to hide internal directories.