Versions in this module Expand all Collapse all v1 v1.9.0 Apr 18, 2022 Changes in this version + const ExecutionTimeout + const MinIterations + const MinimumRuntime + const StandardRuntime + func BSONDeepDocumentDecoding(ctx context.Context, tm TimerManager, iters int) error + func BSONDeepDocumentDecodingLazy(ctx context.Context, tm TimerManager, iters int) error + func BSONDeepDocumentEncoding(ctx context.Context, tm TimerManager, iters int) error + func BSONDeepMapDecoding(ctx context.Context, tm TimerManager, iters int) error + func BSONDeepMapEncoding(ctx context.Context, tm TimerManager, iters int) error + func BSONFlatDocumentDecoding(ctx context.Context, tm TimerManager, iters int) error + func BSONFlatDocumentDecodingLazy(ctx context.Context, tm TimerManager, iters int) error + func BSONFlatDocumentEncoding(ctx context.Context, tm TimerManager, iters int) error + func BSONFlatMapDecoding(ctx context.Context, tm TimerManager, iters int) error + func BSONFlatMapEncoding(ctx context.Context, tm TimerManager, iters int) error + func BSONFlatStructDecoding(ctx context.Context, tm TimerManager, iters int) error + func BSONFlatStructEncoding(ctx context.Context, tm TimerManager, iters int) error + func BSONFlatStructTagsDecoding(ctx context.Context, tm TimerManager, iters int) error + func BSONFlatStructTagsEncoding(ctx context.Context, tm TimerManager, iters int) error + func BSONFullDocumentDecoding(ctx context.Context, tm TimerManager, iters int) error + func BSONFullDocumentDecodingLazy(ctx context.Context, tm TimerManager, iters int) error + func BSONFullDocumentEncoding(ctx context.Context, tm TimerManager, iters int) error + func BSONFullMapDecoding(ctx context.Context, tm TimerManager, iters int) error + func BSONFullMapEncoding(ctx context.Context, tm TimerManager, iters int) error + func CanaryIncCase(ctx context.Context, tm TimerManager, iters int) error + func DriverBenchmarkMain() int + func GlobalCanaryIncCase(ctx context.Context, tm TimerManager, iters int) error + func MultiFindMany(ctx context.Context, tm TimerManager, iters int) error + func MultiInsertLargeDocument(ctx context.Context, tm TimerManager, iters int) error + func MultiInsertSmallDocument(ctx context.Context, tm TimerManager, iters int) error + func SingleFindOneByID(ctx context.Context, tm TimerManager, iters int) error + func SingleInsertLargeDocument(ctx context.Context, tm TimerManager, iters int) error + func SingleInsertSmallDocument(ctx context.Context, tm TimerManager, iters int) error + func SingleRunCommand(ctx context.Context, tm TimerManager, iters int) error + type BenchCase func(context.Context, TimerManager, int) error + type BenchFunction func(*testing.B) + func WrapCase(bench BenchCase) BenchFunction + type BenchResult struct + DataSize int + Duration time.Duration + Name string + Operations int + Raw []Result + Trials int + func (r *BenchResult) EvergreenPerfFormat() ([]interface{}, error) + func (r *BenchResult) HasErrors() bool + func (r *BenchResult) String() string + type CaseDefinition struct + Bench BenchCase + Count int + RequiredIterations int + Runtime time.Duration + Size int + func (c *CaseDefinition) Name() string + func (c *CaseDefinition) ResetTimer() + func (c *CaseDefinition) Run(ctx context.Context) *BenchResult + func (c *CaseDefinition) StartTimer() + func (c *CaseDefinition) StopTimer() + func (c *CaseDefinition) String() string + type Result struct + Duration time.Duration + Error error + Iterations int + type TimerManager interface + ResetTimer func() + StartTimer func() + StopTimer func()