refactored test benchmark