Documentation ¶
Index ¶
- Constants
- Variables
- type BulkQuery
- type HistoryItem
- type Processor
- type QueryBenchmarker
- func (q QueryBenchmarker) BatchSize() int
- func (q QueryBenchmarker) BurnIn() uint64
- func (q QueryBenchmarker) Debug() int
- func (q QueryBenchmarker) GradualWorkersIncrease() bool
- func (q *QueryBenchmarker) Init()
- func (q QueryBenchmarker) Limit() int64
- func (q QueryBenchmarker) PrettyPrintResponses() bool
- func (q *QueryBenchmarker) RunBenchmark(bulkQuery BulkQuery)
- func (q *QueryBenchmarker) Validate()
- func (q QueryBenchmarker) WaitInterval() time.Duration
- type Scanner
- type SimpleRegression
- type Stat
- type StatGroup
- type StatsMap
- type TimedStatGroup
- func (m *TimedStatGroup) Avg() float64
- func (m *TimedStatGroup) FindHistoryItemBelow(val float64) *HistoryItem
- func (m *TimedStatGroup) Median() float64
- func (m *TimedStatGroup) Push(timestamp time.Time, value float64)
- func (m *TimedStatGroup) UpdateAvg(now time.Time, workers int) (float64, float64)
- type TrendStat
Constants ¶
View Source
const ( Dashboard = "dashboard" AllQueriesLabel = "all queries" )
Variables ¶
View Source
var Benchmarker = &QueryBenchmarker{}
Functions ¶
This section is empty.
Types ¶
type HistoryItem ¶
type QueryBenchmarker ¶
type QueryBenchmarker struct {
// contains filtered or unexported fields
}
func (QueryBenchmarker) BatchSize ¶
func (q QueryBenchmarker) BatchSize() int
func (QueryBenchmarker) BurnIn ¶
func (q QueryBenchmarker) BurnIn() uint64
func (QueryBenchmarker) Debug ¶
func (q QueryBenchmarker) Debug() int
func (QueryBenchmarker) GradualWorkersIncrease ¶
func (q QueryBenchmarker) GradualWorkersIncrease() bool
func (*QueryBenchmarker) Init ¶
func (q *QueryBenchmarker) Init()
func (QueryBenchmarker) Limit ¶
func (q QueryBenchmarker) Limit() int64
func (QueryBenchmarker) PrettyPrintResponses ¶
func (q QueryBenchmarker) PrettyPrintResponses() bool
func (*QueryBenchmarker) RunBenchmark ¶
func (q *QueryBenchmarker) RunBenchmark(bulkQuery BulkQuery)
func (*QueryBenchmarker) Validate ¶
func (q *QueryBenchmarker) Validate()
func (QueryBenchmarker) WaitInterval ¶
func (q QueryBenchmarker) WaitInterval() time.Duration
type SimpleRegression ¶
type SimpleRegression struct {
// contains filtered or unexported fields
}
func (*SimpleRegression) Intercept ¶
func (sr *SimpleRegression) Intercept() float64
func (*SimpleRegression) Slope ¶
func (sr *SimpleRegression) Slope() float64
func (*SimpleRegression) Update ¶
func (sr *SimpleRegression) Update(x, y float64)
type Stat ¶
Stat represents one statistical measurement.
type StatGroup ¶
StatGroup collects simple streaming statistics.
type TimedStatGroup ¶
type TimedStatGroup struct {
// contains filtered or unexported fields
}
func NewTimedStatGroup ¶
func NewTimedStatGroup(maxDuration time.Duration, maxTrendSamples int) *TimedStatGroup
func (*TimedStatGroup) Avg ¶
func (m *TimedStatGroup) Avg() float64
func (*TimedStatGroup) FindHistoryItemBelow ¶
func (m *TimedStatGroup) FindHistoryItemBelow(val float64) *HistoryItem
func (*TimedStatGroup) Median ¶
func (m *TimedStatGroup) Median() float64
Click to show internal directories.
Click to hide internal directories.