runner

package
v0.0.0-...-01b4228 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRunner

func NewRunner(client *api.Client, workerHost string) *runner

Types

type Job

type Job struct {
	*scenario.Job
	Url      string `json:"url"`
	Category string `json:"category"`
}

type Result

type Result struct {
	QueueTotalJobs  uint          `json:"queue_total_jobs"`
	QueueErrors     uint          `json:"queue_errors"`
	QueueTime       time.Duration `json:"queue_time"`
	WorkerTotalJobs uint          `json:"worker_total_jobs"`
	WorkerErrors    uint          `json:"worker_errors"`
	WorkerTime      time.Duration `json:"worker_time"`
}

func (*Result) Add

func (r *Result) Add(other *Result) *Result

func (*Result) QueueScore

func (r *Result) QueueScore() float64

func (*Result) QueueThroughput

func (r *Result) QueueThroughput() float64

func (*Result) Score

func (r *Result) Score() float64

func (*Result) WorkerScore

func (r *Result) WorkerScore() float64

func (*Result) WorkerThroughput

func (r *Result) WorkerThroughput() float64

Jump to

Keyboard shortcuts

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