Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterReporter ¶
RegisterReporter registers the reporter with the unique name
Types ¶
type DBStat ¶
type DBStat struct { // Name is the unqiue name used in plotting later. Name string // DB is the database name DB string // Workload is the benchmark workload name Workload string // Summary holds the final output summary record // The key of the map is the operation in the benchmark. // E.g, in go-ycsb, the operation may be INSERT, READ Summary map[string]*Record // Progress holds the in progess record in benchmarking Progress map[string][]*Record }
DBStat holds all statistics in one benchmark
func NewDBStat ¶
NewDBStat creates a DBStat. We assume we put all logs in one unique directory in each benchmark. E.g, we can use Git commit as the parent directory for benchmarking special version, use datetime for benchmarking different databases. If pathName is empty, we will use db as the name of DBStat.
func (*DBStat) Operations ¶
Operations returns all the operations in the test
type Reporter ¶
type Reporter interface { // ParseName parses the db and workload from the result filename. // The filename format mostly is db_workload.log ParseName(fileName string) (db string, workload string) // NewDBStat parses the benchmark result file and saves the statistics into DBStat NewDBStat(name string, db string, workload string, filePath string) (*DBStat, error) // StatTypes returns the statistics we want to know StatTypes() []StatType }
Reporter defines how to report your own benchmark tool result.
func GetReporter ¶
GetReporter gets the Reporter with the name
Click to show internal directories.
Click to hide internal directories.