public static void Main(string[] args) { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final String resultsFolder = "target"+java.io.File.separatorChar+"results"; string resultsFolder = "target" + Path.DirectorySeparatorChar + "results"; //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final String reportsFolder = "target"+java.io.File.separatorChar+"reports"; string reportsFolder = "target" + Path.DirectorySeparatorChar + "reports"; string longTermBenchmarkResultFilename = System.getProperty("longTermBenchmarkResultFile"); if (!string.ReferenceEquals(longTermBenchmarkResultFilename, null)) { File longTermBenchmarkResultFile = new File(longTermBenchmarkResultFilename); longTermBenchmarkResultFile.ParentFile.mkdirs(); if (longTermBenchmarkResultFile.exists()) { // Do nothing, append current results later } else { FileUtil.appendStringToFile("name;" + "number of runs;" + "database;" + "history level;" + "starttime;" + "platform;" + "number of threads;" + "duration;" + "throughput", longTermBenchmarkResultFilename); } TabularResultSet longTermResultTable = (new BenchmarkLongtermAggregator(resultsFolder)).execute(); FileUtil.appendStringToFile(CsvUtil.resultSetAsCsv(longTermResultTable), longTermBenchmarkResultFilename); } writeReport(resultsFolder, reportsFolder, "benchmark", new BenchmarkAggregator(resultsFolder), "Benchmark Duration Report"); }