grpc_helper

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BenchmarkGRPCAndStore

func BenchmarkGRPCAndStore(ctx context.Context, meta BenchmarkGRPCMeta) error

BenchmarkGRPCAndStore performs steps 1) creates client to GRPC server 2) filters files from a given directories 3) runs warm up request 4) runs benchmarks using the filtered files 5) stores results to a given storage

Types

type BenchmarkGRPCMeta

type BenchmarkGRPCMeta struct {
	// Address represents the address of GRPC server
	Address string
	// Commit represents commit id that's being tested, used as a label for storage
	Commit string
	// ExcludeSubstrings is a filtering option that defines substrings which files cannot contain to be filtered
	ExcludeSubstrings []string
	// Dirs defines the array of directories to be listed for files for further filtering
	Dirs []string
	// FilterPrefix is a filtering option that defines name prefix files should contain to be filtered
	FilterPrefix string
	// Language represents tested language, is used during the request and as a label for storage
	Language string
	// Level represents the level of bblfsh architecture tested(either end-to-end, driver, driver-native, transformations)
	// is used as a label during the storage
	Level string
	// Storage represents storage type to be used
	Storage string
}

BenchmarkGRPCMeta collects metadata that is required for: - GRPC client connection - files filtering - proper push to storage

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL