tensorflow/core/platform/statusor_test.cc
// Measure the time taken to call into the factory, return the value,
// determine that it is OK, and invoke a trivial function.
Measure the time taken to call into the factory, return the value,
determine that it is OK, and invoke a trivial function.
Measure the time taken to call into the factory return the value determine that it is OK and invoke a trivial function .
void BM_TrivialFactory(::testing::benchmark::State& state) {
  BenchmarkFactory<BenchmarkType> factory;
  for (auto s : state) {
    BenchmarkType* result = factory.TrivialFactory();
    if (result != nullptr) {
      result->DoWork();
    }
  }
}
void BM_TrivialFactory ( :: testing :: benchmark :: State & state ) { BenchmarkFactory < BenchmarkType > factory ; for ( auto s : state ) { BenchmarkType * result = factory . TrivialFactory ( ) ; if ( result != nullptr ) { result -> DoWork ( ) ; } } }
Measure the time taken to call into the factory, return the value,
determine that it is OK, and invoke a trivial function.
Measure the time taken to call into the factory return the value determine that it is OK and invoke a trivial function .