public static void main(String[] args) throws IOException, URISyntaxException {
    if (args.length != 3) {
      System.err.println("Usage: graphgen [template] [input.json] [output.html]");
      listAllResources(System.err);
      System.exit(1);
    }

    try (InputStream spec = Main.class.getResourceAsStream(JSON_TEMPLATES + args[0]);
        InputStream jmhIn = new BufferedInputStream(new FileInputStream(args[1]));
        OutputStream output = new BufferedOutputStream(new FileOutputStream(args[2]))) {
      writeHtml(output, "header.html");
      convertJmhJsonData(spec, jmhIn, output);
      writeHtml(output, "footer.html");
    }
  }
Utility to convert from the JMH JSON output to an HTML file.
benchmark-graphs/src/main/java/org/conscrypt/graphgen/Main.java