Added code for mean benchmark