Benchmark to measure the cost of dynamic invocation