...

Source file src/go.mongodb.org/mongo-driver/benchmark/canary.go

Documentation: go.mongodb.org/mongo-driver/benchmark

     1  // Copyright (C) MongoDB, Inc. 2017-present.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License"); you may
     4  // not use this file except in compliance with the License. You may obtain
     5  // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
     6  
     7  package benchmark
     8  
     9  import (
    10  	"context"
    11  )
    12  
    13  // CanaryIncCase is a no-op.
    14  //
    15  // Deprecated: CanaryIncCase has no observable effect, so recent versions of the Go compiler may
    16  // bypass calls to it in the compiled binary. It should not be used in benchmarks.
    17  func CanaryIncCase(context.Context, TimerManager, int) error {
    18  	return nil
    19  }
    20  
    21  // GlobalCanaryIncCase is a no-op.
    22  //
    23  // Deprecated: GlobalCanaryIncCase has no observable effect, so recent versions of the Go compiler
    24  // may bypass calls to it in the compiled binary. It should not be used in benchmarks.
    25  func GlobalCanaryIncCase(context.Context, TimerManager, int) error {
    26  	return nil
    27  }
    28  

View as plain text