allow specification of method in benchmark()