clean up of duplicated benchmark code
added name and threshold params