streamline benchmark function