refactored benchmark test into class and enabled time averages