use Benchmark for i function