Implement test as a benchmark