DRYed test and benchmark