mongo-driver: go.mongodb.org/mongo-driver/benchmark Index | Files

package benchmark

import "go.mongodb.org/mongo-driver/benchmark"

Index

Package Files

bson.go bson_document.go bson_map.go bson_struct.go bson_types.go canary.go harness.go harness_case.go harness_main.go harness_results.go multi.go single.go

Constants

const (
    ExecutionTimeout = five * time.Minute
    StandardRuntime  = time.Minute
    MinimumRuntime   = five * time.Second
    MinIterations    = hundred
)

func BSONDeepDocumentDecoding Uses

func BSONDeepDocumentDecoding(ctx context.Context, tm TimerManager, iters int) error

func BSONDeepDocumentDecodingLazy Uses

func BSONDeepDocumentDecodingLazy(ctx context.Context, tm TimerManager, iters int) error

func BSONDeepDocumentEncoding Uses

func BSONDeepDocumentEncoding(ctx context.Context, tm TimerManager, iters int) error

func BSONDeepMapDecoding Uses

func BSONDeepMapDecoding(ctx context.Context, tm TimerManager, iters int) error

func BSONDeepMapEncoding Uses

func BSONDeepMapEncoding(ctx context.Context, tm TimerManager, iters int) error

func BSONFlatDocumentDecoding Uses

func BSONFlatDocumentDecoding(ctx context.Context, tm TimerManager, iters int) error

func BSONFlatDocumentDecodingLazy Uses

func BSONFlatDocumentDecodingLazy(ctx context.Context, tm TimerManager, iters int) error

func BSONFlatDocumentEncoding Uses

func BSONFlatDocumentEncoding(ctx context.Context, tm TimerManager, iters int) error

func BSONFlatMapDecoding Uses

func BSONFlatMapDecoding(ctx context.Context, tm TimerManager, iters int) error

func BSONFlatMapEncoding Uses

func BSONFlatMapEncoding(ctx context.Context, tm TimerManager, iters int) error

func BSONFlatStructDecoding Uses

func BSONFlatStructDecoding(ctx context.Context, tm TimerManager, iters int) error

func BSONFlatStructEncoding Uses

func BSONFlatStructEncoding(ctx context.Context, tm TimerManager, iters int) error

func BSONFlatStructTagsDecoding Uses

func BSONFlatStructTagsDecoding(ctx context.Context, tm TimerManager, iters int) error

func BSONFlatStructTagsEncoding Uses

func BSONFlatStructTagsEncoding(ctx context.Context, tm TimerManager, iters int) error

func BSONFullDocumentDecoding Uses

func BSONFullDocumentDecoding(ctx context.Context, tm TimerManager, iters int) error

func BSONFullDocumentDecodingLazy Uses

func BSONFullDocumentDecodingLazy(ctx context.Context, tm TimerManager, iters int) error

func BSONFullDocumentEncoding Uses

func BSONFullDocumentEncoding(ctx context.Context, tm TimerManager, iters int) error

func BSONFullMapDecoding Uses

func BSONFullMapDecoding(ctx context.Context, tm TimerManager, iters int) error

func BSONFullMapEncoding Uses

func BSONFullMapEncoding(ctx context.Context, tm TimerManager, iters int) error

func CanaryIncCase Uses

func CanaryIncCase(ctx context.Context, tm TimerManager, iters int) error

func DriverBenchmarkMain Uses

func DriverBenchmarkMain() int

func GlobalCanaryIncCase Uses

func GlobalCanaryIncCase(ctx context.Context, tm TimerManager, iters int) error

func MultiFindMany Uses

func MultiFindMany(ctx context.Context, tm TimerManager, iters int) error

func MultiInsertLargeDocument Uses

func MultiInsertLargeDocument(ctx context.Context, tm TimerManager, iters int) error

func MultiInsertSmallDocument Uses

func MultiInsertSmallDocument(ctx context.Context, tm TimerManager, iters int) error

func SingleFindOneByID Uses

func SingleFindOneByID(ctx context.Context, tm TimerManager, iters int) error

func SingleInsertLargeDocument Uses

func SingleInsertLargeDocument(ctx context.Context, tm TimerManager, iters int) error

func SingleInsertSmallDocument Uses

func SingleInsertSmallDocument(ctx context.Context, tm TimerManager, iters int) error

func SingleRunCommand Uses

func SingleRunCommand(ctx context.Context, tm TimerManager, iters int) error

type BenchCase Uses

type BenchCase func(context.Context, TimerManager, int) error

type BenchFunction Uses

type BenchFunction func(*testing.B)

func WrapCase Uses

func WrapCase(bench BenchCase) BenchFunction

type BenchResult Uses

type BenchResult struct {
    Name       string
    Trials     int
    Duration   time.Duration
    Raw        []Result
    DataSize   int
    Operations int
    // contains filtered or unexported fields
}

func (*BenchResult) EvergreenPerfFormat Uses

func (r *BenchResult) EvergreenPerfFormat() ([]interface{}, error)

func (*BenchResult) HasErrors Uses

func (r *BenchResult) HasErrors() bool

func (*BenchResult) String Uses

func (r *BenchResult) String() string

type CaseDefinition Uses

type CaseDefinition struct {
    Bench              BenchCase
    Count              int
    Size               int
    RequiredIterations int
    Runtime            time.Duration
    // contains filtered or unexported fields
}

func (*CaseDefinition) Name Uses

func (c *CaseDefinition) Name() string

func (*CaseDefinition) ResetTimer Uses

func (c *CaseDefinition) ResetTimer()

func (*CaseDefinition) Run Uses

func (c *CaseDefinition) Run(ctx context.Context) *BenchResult

func (*CaseDefinition) StartTimer Uses

func (c *CaseDefinition) StartTimer()

func (*CaseDefinition) StopTimer Uses

func (c *CaseDefinition) StopTimer()

func (*CaseDefinition) String Uses

func (c *CaseDefinition) String() string

type Result Uses

type Result struct {
    Duration   time.Duration
    Iterations int
    Error      error
}

type TimerManager Uses

type TimerManager interface {
    ResetTimer()
    StartTimer()
    StopTimer()
}

TimerManager is a subset of the testing.B tool, used to manage setup code.

Package benchmark imports 21 packages (graph) and is imported by 1 packages. Updated 2019-02-23. Refresh now. Tools for package owners.