tensorflow/core/platform/statusor_test.cc
// Measure the time taken to call into the factory, providing an
// out-param for the result, evaluating the status result and the
// result pointer, and invoking the trivial function.
Measure the time taken to call into the factory, providing an
out-param for the result, evaluating the status result and the
result pointer, and invoking the trivial function.
Measure the time taken to call into the factory providing an out - param for the result evaluating the status result and the result pointer and invoking the trivial function .
void BM_ArgumentFactoryFail(::testing::benchmark::State& state) {
  BenchmarkFactory<BenchmarkType> factory;
  for (auto s : state) {
    BenchmarkType* result = nullptr;
    Status status = factory.ArgumentFactoryFail(&result);
    if (status.ok() && result != nullptr) {
      result->DoWork();
    }
  }
}
void BM_ArgumentFactoryFail ( :: testing :: benchmark :: State & state ) { BenchmarkFactory < BenchmarkType > factory ; for ( auto s : state ) { BenchmarkType * result = nullptr ; Status status = factory . ArgumentFactoryFail ( & result ) ; if ( status . ok ( ) && result != nullptr ) { result -> DoWork ( ) ; } } }
Measure the time taken to call into the factory, providing an
out-param for the result, evaluating the status result and the
result pointer, and invoking the trivial function.
Measure the time taken to call into the factory providing an out - param for the result evaluating the status result and the result pointer and invoking the trivial function .