public static void main()

in harness/src/main/java/org/apache/geode/perftest/analysis/DumpResults.java [30:65]


  public static void main(String[] args) throws IOException {
    if (args.length == 0) {
      System.out.println(
          "Usage: dump_results.sh benchmarkDir1 benchmarkDir2 ....");
      System.exit(1);
      return;
    }

    BenchmarkReader reader = new BenchmarkReader();
    reader.addProbe(new YardstickHdrHistogramParser());
    System.out.printf("%-30s %-55s %-16s %-16s %-16s\n", "Directory", "Benchmark", "ops/sec",
        "avg latency(ms)", "99%% latency(ms)");

    Arrays.sort(args);
    for (String directoryName : args) {
      final File benchmarkDir = new File(directoryName);
      Map<String, Map<String, ProbeResultParser.ResultData>> directoryResults =
          reader.readBenchmarks(benchmarkDir);
      for (Map.Entry<String, Map<String, ProbeResultParser.ResultData>> benchmarkResult : directoryResults
          .entrySet()) {

        String name = benchmarkResult.getKey().replaceAll(".*\\.", "");
        double opsPerSec =
            benchmarkResult.getValue().get(YardstickHdrHistogramParser.AVERAGE_OPS_SECOND).value;
        double latency =
            benchmarkResult.getValue().get(YardstickHdrHistogramParser.AVERAGE_LATENCY).value
                / 1_000_000.0;
        double latency_99 =
            benchmarkResult.getValue().get(YardstickHdrHistogramParser.PERCENTILE_LATENCY_99).value
                / 1_000_000.0;

        System.out.printf("%-30s %-55s %-16.2f %-16.4f %-16.4f\n", benchmarkDir.getName(), name,
            opsPerSec, latency, latency_99);
      }
    }
  }