refactor perftests & add a gradle task: perfTest