Improve the benchmark script