tensorflow/core/platform/statusor_test.cc
// Calibrate the amount of time spent just calling DoWork, since each of our
// tests will do this, we can subtract this out of benchmark results.
Calibrate the amount of time spent just calling DoWork, since each of our
tests will do this, we can subtract this out of benchmark results.
Calibrate the amount of time spent just calling DoWork since each of our tests will do this we can subtract this out of benchmark results .
void BM_CalibrateWorkLoop(::testing::benchmark::State& state) {
  BenchmarkFactory<BenchmarkType> factory;
  BenchmarkType* result = factory.TrivialFactory();
  for (auto s : state) {
    if (result != nullptr) {
      result->DoWork();
    }
  }
}
void BM_CalibrateWorkLoop ( :: testing :: benchmark :: State & state ) { BenchmarkFactory < BenchmarkType > factory ; BenchmarkType * result = factory . TrivialFactory ( ) ; for ( auto s : state ) { if ( result != nullptr ) { result -> DoWork ( ) ; } } }
Calibrate the amount of time spent just calling DoWork, since each of our
tests will do this, we can subtract this out of benchmark results.
Calibrate the amount of time spent just calling DoWork since each of our tests will do this we can subtract this out of benchmark results .