tensorflow/cc/experimental/libtf/tests/perf_test.cc
// Add numbers in a loop by calling a callable, looking up method every
// time by tokenized string.
Add numbers in a loop by calling a callable, looking up method every
time by tokenized string.
Add numbers in a loop by calling a callable looking up method every time by tokenized string .
void CallFunctionsIndirect(::testing::benchmark::State& state) {
  Integer sum(0);
  Callable callable((impl::TaggedValue(impl::Func(AddTagged))));
  Object o;
  String name("f");
  o.Set(name, callable);
  size_t i = 0;
  for (auto dummy : state) {
    sum = *(o.Get<Callable>(name))->Call<Integer>(sum, Integer(i));
    i++;
  }
}
void CallFunctionsIndirect ( :: testing :: benchmark :: State & state ) { Integer sum ( 0 ) ; Callable callable ( ( impl :: TaggedValue ( impl :: Func ( AddTagged ) ) ) ) ; Object o ; String name ( " " ) ; o . Set ( name , callable ) ; size_t i = 0 ; for ( auto dummy : state ) { sum = * ( o . Get < Callable > ( name ) ) -> Call < Integer > ( sum , Integer ( i ) ) ; i ++ ; } }
Add numbers in a loop by calling a callable, looking up method every
time by tokenized string.
Add numbers in a loop by calling a callable looking up method every time by tokenized string .