Versions in this module Expand all Collapse all v1 v1.0.5 Apr 28, 2024 v1.0.4 Apr 28, 2024 v1.0.3 Apr 28, 2024 v1.0.2 Apr 28, 2024 Changes in this version + const ExecutionTimeout + const MinIterations + const MinimumRuntime + const StandardRuntime + func BSONDeepDocumentDecoding(_ context.Context, tm TimerManager, iters int) error + func BSONDeepDocumentDecodingLazy(_ context.Context, tm TimerManager, iters int) error + func BSONDeepDocumentEncoding(_ context.Context, tm TimerManager, iters int) error + func BSONDeepMapDecoding(_ context.Context, tm TimerManager, iters int) error + func BSONDeepMapEncoding(_ context.Context, tm TimerManager, iters int) error + func BSONFlatDocumentDecoding(_ context.Context, tm TimerManager, iters int) error + func BSONFlatDocumentDecodingLazy(_ context.Context, tm TimerManager, iters int) error + func BSONFlatDocumentEncoding(_ context.Context, tm TimerManager, iters int) error + func BSONFlatMapDecoding(_ context.Context, tm TimerManager, iters int) error + func BSONFlatMapEncoding(_ context.Context, tm TimerManager, iters int) error + func BSONFlatStructDecoding(_ context.Context, tm TimerManager, iters int) error + func BSONFlatStructEncoding(_ context.Context, tm TimerManager, iters int) error + func BSONFlatStructTagsDecoding(_ context.Context, tm TimerManager, iters int) error + func BSONFlatStructTagsEncoding(_ context.Context, tm TimerManager, iters int) error + func BSONFullDocumentDecoding(_ context.Context, tm TimerManager, iters int) error + func BSONFullDocumentDecodingLazy(_ context.Context, tm TimerManager, iters int) error + func BSONFullDocumentEncoding(_ context.Context, tm TimerManager, iters int) error + func BSONFullMapDecoding(_ context.Context, tm TimerManager, iters int) error + func BSONFullMapEncoding(_ context.Context, tm TimerManager, iters int) error + func CanaryIncCase(context.Context, TimerManager, int) error + func DriverBenchmarkMain() int + func GlobalCanaryIncCase(context.Context, TimerManager, 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 Metric struct + Name string + Value interface{} + type Result struct + Duration time.Duration + Error error + Iterations int + type TimerManager interface + ResetTimer func() + StartTimer func() + StopTimer func()