move benchmarking function to helpers