Documentation ¶
Index ¶
- Constants
- Variables
- func CallFinalFunc(c *mgo.Session)
- func GetCurrentProfileCSV(total_time float64) string
- func GetProfileCSVHeader() string
- func InitProfile(_num_of_workers int)
- func InitSimpleTest(session *mgo.Session, _initdb bool)
- type AdHocPerson
- type AggSmallDoc
- type Event
- type Person
- type Profile
- type ProfileFinalFunc
- type ProfilePointer
- type ProfileStats
- type QA408Config
- type QA408Distribution
- type QA492Config
- type QA492Distribution
- type QA492_Event
- type RandomDataMaker
- type SmallDoc
Constants ¶
View Source
const ( OP_POINT_SELECTS = iota OP_POINT_SELECTS_AGG = iota OP_SIMPLE_RANGES = iota OP_SIMPLE_RANGES_AGG = iota OP_SUM_RANGES = iota OP_ORDER_RANGES = iota OP_ORDER_RANGES_AGG = iota OP_DISTINCT_RANGES = iota OP_DISTINCT_RANGES_AGG = iota OP_INDEX_UPDATES = iota OP_NON_INDEX_UPDATES = iota OP_REMOVE_AND_INSERT = iota OP_UPDATE_PUSH_FIRST = iota OP_UPDATE_PUSH_LAST = iota OP_INSERT_16M_DOC = iota OP_WRITE_BULK_INSERT = iota OP_RANGE_QUERY = iota OP_MAX_OPS = iota )
View Source
const ( SYSBENCH_POINT_SELECTS = iota SYSBENCH_POINT_SELECTS_AGG = iota SYSBENCH_SIMPLE_RANGES = iota SYSBENCH_SIMPLE_RANGES_AGG = iota SYSBENCH_SUM_RANGES = iota SYSBENCH_ORDER_RANGES = iota SYSBENCH_ORDER_RANGES_AGG = iota SYSBENCH_DISTINCT_RANGES = iota SYSBENCH_DISTINCT_RANGES_AGG = iota SYSBENCH_INDEX_UPDATES = iota SYSBENCH_NON_INDEX_UPDATES = iota SYSBENCH_REMOVE_AND_INSERT = iota SYSBENCH_UPDATE_PUSH_FIRST = iota SYSBENCH_UPDATE_PUSH_LAST = iota SYSBENCH_MAX_OPS = iota )
Variables ¶
View Source
var BulkPayload [2048]byte
View Source
var HT_BATCH_SIZE int
some OS env
View Source
var HT_INSERT_WITH_ID int
View Source
var OP_Ops [OP_MAX_OPS]operation
View Source
var Payload [40]int
View Source
var Payload1 [120]byte
View Source
var Payload2 [120]byte
View Source
var Payload3 [120]byte
View Source
var Payload4 [120]byte
View Source
var Payload5 [120]byte
View Source
var Payload6 [120]byte
View Source
var Run_TOKU_Test bool
View Source
var SB_Ops [SYSBENCH_MAX_OPS]operation
Functions ¶
func CallFinalFunc ¶ added in v0.1.2
func CallFinalFunc(c *mgo.Session)
func GetCurrentProfileCSV ¶
func GetProfileCSVHeader ¶
func GetProfileCSVHeader() string
func InitProfile ¶ added in v0.1.4
func InitProfile(_num_of_workers int)
func InitSimpleTest ¶
func InitSimpleTest(session *mgo.Session, _initdb bool)
Types ¶
type AdHocPerson ¶
type AggSmallDoc ¶
type Profile ¶
type Profile interface { // Next() // return next call information ??Need this?? SendNext(c *mgo.Session, worker_id int) error // prepare and send the next call SetupTest(s *mgo.Session, _initdb bool) error CsvString(total_time float64) string CsvHeader() string }
Profile is the interface to define Profiles.
func GetProfile ¶
type ProfileFinalFunc ¶ added in v0.1.2
type ProfileFinalFunc interface {
Final(c *mgo.Session) // will be run before program exit, used for correctness check
}
type ProfilePointer ¶
type ProfilePointer *Profile
type ProfileStats ¶
type ProfileStats struct {
// contains filtered or unexported fields
}
func (*ProfileStats) GetAvg ¶
func (p *ProfileStats) GetAvg(total_time float64) float64
func (*ProfileStats) GetLastIntervalReq ¶
func (p *ProfileStats) GetLastIntervalReq() int64
func (*ProfileStats) GetThroughput ¶
func (p *ProfileStats) GetThroughput(total_time float64) float64
func (*ProfileStats) RecordResponse ¶
func (p *ProfileStats) RecordResponse(t int64)
type QA408Config ¶
type QA408Distribution ¶
type QA408Distribution struct {
// contains filtered or unexported fields
}
type QA492Config ¶
type QA492Config struct { Profile struct { Staging int // number of record to be insert at the beginning of the run QueryLimit int BatchSize int UIDRange int DateRange int FindByStreamName float64 FindByTag float64 FindByDateRange float64 UpdateTag float64 UpdatePayload float64 AddDoc float64 FindByPayload float64 // qa492 new FindByStreamAndUser float64 FindByTagAndUser float64 FindByDateEangeAndUser float64 FindByStreamAndUserHint bool FindByTagAndUserHint bool FindByDateEangeAndUserHint bool NumOfStreams int64 NumOfTags int64 Distribution string NormalStdDevRatio float64 } }
type QA492Distribution ¶
type QA492Distribution struct {
// contains filtered or unexported fields
}
type QA492_Event ¶
type QA492_Event struct { ID bson.ObjectId `bson:"_id,omitempty"` User int64 `bson:"user"` // user name, could be duplicate Tags []string `bson:"tags"` // between 1 and 20 <tagValues> per document Stream string `bson:"stream"` Position int `bson:"position"` Payload string `bson:"payload"` // 0 - 16kb, peak 500 bytes Timestamp time.Time `bson:"timestamp"` }
type RandomDataMaker ¶ added in v0.1.7
type RandomDataMaker struct {
// contains filtered or unexported fields
}
Source Files ¶
- operation_inserts.go
- profile.go
- profile_adhoc.go
- profile_adhoc_insert.go
- profile_agg_insert.go
- profile_agg_pipeline.go
- profile_bulk_insert.go
- profile_cappedcoll_insert.go
- profile_cappedcoll_insert_read.go
- profile_composed_profile.go
- profile_contended_update.go
- profile_inplace_update.go
- profile_insert.go
- profile_insert_remove.go
- profile_insert_small_doc.go
- profile_mixed_profile.go
- profile_qa373.go
- profile_qa492.go
- profile_query_single_doc.go
- profile_rangeQuery.go
- profile_sysbench_benchmark.go
- profile_sysbench_insert.go
- profile_update_extend_doc.go
- profile_utils.go
Click to show internal directories.
Click to hide internal directories.