Update benchmarking function