Add benchmark function.