private void displayStats(@NotNull Formatter fmt, @NotNull String name,
                            @NotNull DescriptiveStatistics stats) {
    double mean = stats.getMean();
    double err = stats.getStandardDeviation() / mean * 100;
    long conv = scale.toNanos(1);

    fmt.format("%-30s %-8.4g %-8.4g %-8.4g %-8.4g %-8.4g%n",
        name,
        mean / conv,
        median(stats) / conv,
        stats.getMin() / conv,
        stats.getMax() / conv,
        err);
  }
Produce printable result
@param fmt text formatter - destination of formatted results.
@param name benchmark name
@param stats benchmark data
standalone-metastore/metastore-tools/tools-common/src/main/java/org/apache/hadoop/hive/metastore/tools/BenchmarkSuite.java