Added a benchmark function