tensorflow/cc/experimental/libtf/tests/perf_test.cc
// Add numbers in a loop by calling a callable.
Add numbers in a loop by calling a callable.
Add numbers in a loop by calling a callable .
void CallFunctions(::testing::benchmark::State& state) {
  Integer sum(0);
  Callable callable((impl::TaggedValue(impl::Func(AddTagged))));
  *callable.Call<Integer>(sum, Integer(30));
  size_t i = 0;
  for (auto dummy : state) {
    sum = *callable.Call<Integer>(sum, Integer(i));
    i++;
  }
}
void CallFunctions ( :: testing :: benchmark :: State & state ) { Integer sum ( 0 ) ; Callable callable ( ( impl :: TaggedValue ( impl :: Func ( AddTagged ) ) ) ) ; * callable . Call < Integer > ( sum , Integer ( 30 ) ) ; size_t i = 0 ; for ( auto dummy : state ) { sum = * callable . Call < Integer > ( sum , Integer ( i ) ) ; i ++ ; } }
Add numbers in a loop by calling a callable.
Add numbers in a loop by calling a callable .