Documentation ¶
Index ¶
- func GetSchema(c *mongo.Collection, verbose bool) (string, error)
- type Frequency
- type Runner
- func (rn *Runner) Cleanup() error
- func (rn *Runner) CollectAllStatus() error
- func (rn *Runner) PopulateData() error
- func (rn *Runner) SetAutoMode(auto bool)
- func (rn *Runner) SetCollection(collectionName string)
- func (rn *Runner) SetDropFirstMode(mode bool)
- func (rn *Runner) SetDuration(duration int)
- func (rn *Runner) SetNumberConnections(num int)
- func (rn *Runner) SetPeekingMode(mode bool)
- func (rn *Runner) SetSimOnlyMode(mode bool)
- func (rn *Runner) SetTPS(tps int)
- func (rn *Runner) SetTemplateFilename(filename string)
- func (rn *Runner) SetTransactionTemplate(filename string)
- func (rn *Runner) SetVerbose(verbose bool)
- func (rn *Runner) Simulate(duration int, transactions []Transaction, thread int) error
- func (rn *Runner) Start() error
- type ServerStats
- type Transaction
- type TransactionDoc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Frequency ¶ added in v1.0.1
type Frequency struct {
// contains filtered or unexported fields
}
Frequency stores wait time
type Runner ¶
type Runner struct { Logger *gox.Logger `bson:"keyhole"` Metrics map[string][]bson.M `bson:"metrics"` Results []string `bson:"results"` // contains filtered or unexported fields }
Runner -
func NewRunner ¶
func NewRunner(connString connstring.ConnString) (*Runner, error)
NewRunner - Constructor
func (*Runner) CollectAllStatus ¶ added in v1.0.1
CollectAllStatus collects all server stats
func (*Runner) PopulateData ¶ added in v1.0.1
PopulateData - Insert docs to evaluate performance/bandwidth
{ favorites: { sports: [] cities: [] } favoriteSports: [] favoriteSports1 favoriteSports2 favoriteSports3 }
func (*Runner) SetAutoMode ¶ added in v1.0.1
SetAutoMode set transaction per second
func (*Runner) SetCollection ¶ added in v1.0.1
SetCollection set collection name
func (*Runner) SetDuration ¶ added in v1.0.4
SetDuration sets simulation/load test duration
func (*Runner) SetNumberConnections ¶
SetNumberConnections -
func (*Runner) SetPeekingMode ¶ added in v1.0.1
SetPeekingMode -
func (*Runner) SetTemplateFilename ¶
SetTemplateFilename -
func (*Runner) SetTransactionTemplate ¶ added in v1.0.4
SetTransactionTemplate sets transaction template file
type ServerStats ¶ added in v1.0.1
type ServerStats struct {
// contains filtered or unexported fields
}
ServerStats stores server stats struct
func NewServerStats ¶ added in v1.0.1
func NewServerStats(uri string, channel chan string) *ServerStats
NewServerStats gets server status
func (*ServerStats) SetPeekingMode ¶ added in v1.0.1
func (st *ServerStats) SetPeekingMode(peek bool)
SetPeekingMode sets peeking mode
func (*ServerStats) SetVerbose ¶ added in v1.0.1
func (st *ServerStats) SetVerbose(verbose bool)
SetVerbose sets verbose
type Transaction ¶
type Transaction struct { C string `json:"c"` Filter bson.M `json:"filter"` Op bson.M `json:"op"` Pipe []bson.M `json:"pipe"` }
Transaction -
type TransactionDoc ¶
type TransactionDoc struct { Transactions []Transaction `json:"transactions" bson:"transactions"` Indexes []bson.M `json:"indexes" bson:"indexes"` }
TransactionDoc -
Source Files ¶
Click to show internal directories.
Click to hide internal directories.