class BenchmarkUtils {

  public static double avg(Iterable<Double> iterable) {
    Iterator<Double> iterator = iterable.iterator();
    double total = 0.0;
    int num = 0;
    while (iterator.hasNext()) {
      total += iterator.next();
      num++;
    }
    return total / num;
  }

  private  BenchmarkUtils();

}