benchs

package
v0.0.0-...-7cfd467 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: MIT Imports: 31 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ORM_MULTI    int
	ORM_MAX_IDLE int
	ORM_MAX_CONN int
	ORM_SOURCE   string
)
View Source
var BrandNames []string

Functions

func BeegoOrmInsert

func BeegoOrmInsert(b *B)

func BeegoOrmInsertMulti

func BeegoOrmInsertMulti(b *B)

func BeegoOrmRead

func BeegoOrmRead(b *B)

func BeegoOrmReadSlice

func BeegoOrmReadSlice(b *B)

func BeegoOrmUpdate

func BeegoOrmUpdate(b *B)

func DbrInsert

func DbrInsert(b *B)

func DbrInsertMulti

func DbrInsertMulti(b *B)

func DbrRead

func DbrRead(b *B)

func DbrReadSlice

func DbrReadSlice(b *B)

func DbrUpdate

func DbrUpdate(b *B)

func GenmaiInsert

func GenmaiInsert(b *B)

func GenmaiInsertMulti

func GenmaiInsertMulti(b *B)

func GenmaiRead

func GenmaiRead(b *B)

func GenmaiReadSlice

func GenmaiReadSlice(b *B)

func GenmaiUpdate

func GenmaiUpdate(b *B)

func GoDBInsert

func GoDBInsert(b *B)

func GoDBInsertMulti

func GoDBInsertMulti(b *B)

func GoDBRead

func GoDBRead(b *B)

func GoDBReadSlice

func GoDBReadSlice(b *B)

func GoDBUpdate

func GoDBUpdate(b *B)

func GormInsert

func GormInsert(b *B)

func GormInsertMulti

func GormInsertMulti(b *B)

func GormRead

func GormRead(b *B)

func GormReadSlice

func GormReadSlice(b *B)

func GormUpdate

func GormUpdate(b *B)

func GorpInsert

func GorpInsert(b *B)

func GorpInsertMulti

func GorpInsertMulti(b *B)

func GorpRead

func GorpRead(b *B)

func GorpReadSlice

func GorpReadSlice(b *B)

func GorpUpdate

func GorpUpdate(b *B)

func HdInsert

func HdInsert(b *B)

func HdInsertMulti

func HdInsertMulti(b *B)

func HdRead

func HdRead(b *B)

func HdReadSlice

func HdReadSlice(b *B)

func HdUpdate

func HdUpdate(b *B)

func MakeReport

func MakeReport() (result string)

func ModlInsert

func ModlInsert(b *B)

func ModlInsertMulti

func ModlInsertMulti(b *B)

func ModlRead

func ModlRead(b *B)

func ModlReadSlice

func ModlReadSlice(b *B)

func ModlUpdate

func ModlUpdate(b *B)

func NewSuite

func NewSuite(name string) *suite

func PgInsert

func PgInsert(b *B)

func PgInsertMulti

func PgInsertMulti(b *B)

func PgRead

func PgRead(b *B)

func PgReadSlice

func PgReadSlice(b *B)

func PgUpdate

func PgUpdate(b *B)

func PopConnect

func PopConnect(name string) (*pop.Connection, error)

func PopInsert

func PopInsert(b *B)

func PopInsertMulti

func PopInsertMulti(b *B)

func PopRead

func PopRead(b *B)

func PopReadSlice

func PopReadSlice(b *B)

func PopUpdate

func PopUpdate(b *B)

func QbsInsert

func QbsInsert(b *B)

func QbsInsertMulti

func QbsInsertMulti(b *B)

func QbsRead

func QbsRead(b *B)

func QbsReadSlice

func QbsReadSlice(b *B)

func QbsUpdate

func QbsUpdate(b *B)

func RawInsert

func RawInsert(b *B)

func RawInsertMulti

func RawInsertMulti(b *B)

func RawRead

func RawRead(b *B)

func RawReadSlice

func RawReadSlice(b *B)

func RawUpdate

func RawUpdate(b *B)

func RelInsert

func RelInsert(b *B)

func RelInsertMulti

func RelInsertMulti(b *B)

func RelRead

func RelRead(b *B)

func RelReadSlice

func RelReadSlice(b *B)

func RelUpdate

func RelUpdate(b *B)

func RunBenchmark

func RunBenchmark(name string)

func SqlxInsert

func SqlxInsert(b *B)

func SqlxInsertMulti

func SqlxInsertMulti(b *B)

func SqlxRead

func SqlxRead(b *B)

func SqlxReadSlice

func SqlxReadSlice(b *B)

func SqlxUpdate

func SqlxUpdate(b *B)

func UpperIOInsert

func UpperIOInsert(b *B)

func UpperIOInsertMulti

func UpperIOInsertMulti(b *B)

func UpperIORead

func UpperIORead(b *B)

func UpperIOReadSlice

func UpperIOReadSlice(b *B)

func UpperIOUpdate

func UpperIOUpdate(b *B)

func XormInsert

func XormInsert(b *B)

func XormInsertMulti

func XormInsertMulti(b *B)

func XormRead

func XormRead(b *B)

func XormReadSlice

func XormReadSlice(b *B)

func XormUpdate

func XormUpdate(b *B)

Types

type B

type B struct {
	Brand string
	Name  string
	N     int
	L     int
	F     func(b *B)
	// contains filtered or unexported fields
}

func (*B) Fail

func (c *B) Fail()

func (*B) FailNow

func (c *B) FailNow()

func (*B) ResetTimer

func (b *B) ResetTimer()

func (*B) StartTimer

func (b *B) StartTimer()

func (*B) StopTimer

func (b *B) StopTimer()

type BList

type BList []*B

func (BList) Len

func (s BList) Len() int

func (BList) Less

func (s BList) Less(i, j int) bool

func (BList) Swap

func (s BList) Swap(i, j int)

type BeegoModel

type BeegoModel struct {
	Id      int `orm:"auto"`
	Name    string
	Title   string
	Fax     string
	Web     string
	Age     int
	Right   bool
	Counter int64
}

func NewBeegoModel

func NewBeegoModel() *BeegoModel

type BenchmarkResult

type BenchmarkResult struct {
	N         int
	T         time.Duration
	MemAllocs uint64
	MemBytes  uint64
	FailedMsg string
}

func (BenchmarkResult) AllocedBytesPerOp

func (r BenchmarkResult) AllocedBytesPerOp() int64

func (BenchmarkResult) AllocsPerOp

func (r BenchmarkResult) AllocsPerOp() int64

func (BenchmarkResult) NsPerOp

func (r BenchmarkResult) NsPerOp() int64

func (BenchmarkResult) String

func (r BenchmarkResult) String() string

type GDModel

type GDModel struct {
	Id      int    `db:"id,key,auto"`
	Name    string `db:"name"`
	Title   string `db:"title"`
	Fax     string `db:"fax"`
	Web     string `db:"web"`
	Age     int    `db:"age"`
	Right   bool   `db:"right"`
	Counter int64  `db:"counter"`
}

func NewGDModel

func NewGDModel() *GDModel

func (*GDModel) TableName

func (*GDModel) TableName() string

type GModel

type GModel struct {
	Id      int `db:"pk"`
	Name    string
	Title   string
	Fax     string
	Web     string
	Age     int
	Right   bool
	Counter int64
}

func NewGModel

func NewGModel() *GModel

func (*GModel) TableName

func (*GModel) TableName() string

type GOModel

type GOModel struct {
	Id      int    `db:"id,primarykey,autoincrement"`
	Name    string `db:"name"`
	Title   string `db:"title"`
	Fax     string `db:"fax"`
	Web     string `db:"web"`
	Age     int    `db:"age"`
	Right   bool   `db:"right"`
	Counter int64  `db:"counter"`
}

func NewGOModel

func NewGOModel() *GOModel

type HdModel

type HdModel struct {
	Id      hood.Id `db:"id" sql:"pk"`
	Name    string
	Title   string
	Fax     string
	Web     string
	Age     int
	Right   bool
	Counter int64
}

func NewHdModel

func NewHdModel() *HdModel

type Model

type Model struct {
	Id      int `qbs:"pk" orm:"auto" gorm:"primary_key" db:"id"`
	Name    string
	Title   string
	Fax     string
	Web     string
	Age     int
	Right   bool
	Counter int64
}

func NewModel

func NewModel() *Model

NewModel initializes a new model struct for inserts

type PModel

type PModel struct {
	ID      int    `db:"id"`
	Name    string `db:"name"`
	Title   string `db:"title"`
	Fax     string `db:"fax"`
	Web     string `db:"web"`
	Age     int    `db:"age"`
	Rightx  bool   `db:"rightx"` //escaping problem
	Counter int64  `db:"counter"`
}

func NewPModel

func NewPModel() *PModel

type QModel

type QModel struct {
	Id      int64 `qbs:"pk" orm:"auto" gorm:"primary_key" db:"id"`
	Name    string
	Title   string
	Fax     string
	Web     string
	Age     int
	Right   bool
	Counter int64
}

func NewQModel

func NewQModel() *QModel

type RModel

type RModel struct {
	Id      int    `db:"id"`
	Name    string `db:"name"`
	Title   string `db:"title"`
	Fax     string `db:"fax"`
	Web     string `db:"web"`
	Age     int    `db:"age"`
	Right   bool   `db:"right"`
	Counter int64  `db:"counter"`
}

func NewRModel

func NewRModel() *RModel

func (RModel) Table

func (r RModel) Table() string

type VModel

type VModel struct {
	Id      int64  `db:"id,omitempty"`
	Name    string `db:"name"`
	Title   string `db:"title"`
	Fax     string `db:"fax"`
	Web     string `db:"web"`
	Age     int    `db:"age"`
	Right   bool   `db:"right"`
	Counter int64  `db:"counter"`
}

func NewVModel

func NewVModel() *VModel

type XormModel

type XormModel struct {
	Id      int
	Name    string
	Title   string
	Fax     string
	Web     string
	Age     int
	Right   bool
	Counter int64
}

func NewXormModel

func NewXormModel() *XormModel

Jump to

Keyboard shortcuts

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