![JAR search and dependency download from the Maven repository](/logo.png)
net.engio.pips.reports.CSVFileExporter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lab Show documentation
Show all versions of lab Show documentation
Benchmarking suite for Java macro benchmarks. Configure and run workloads to stress test your
application. Measure runtime performance using your preferred data collector and plotter.
The newest version!
package net.engio.pips.reports;
import net.engio.pips.data.IDataCollector;
import net.engio.pips.lab.Benchmark;
import java.io.File;
import java.io.PrintWriter;
/**
* @author bennidi
* Date: 2/27/14
*/
public class CSVFileExporter implements IReporter {
public void generate(Benchmark benchmark) throws Exception {
String reportDirectory = benchmark.getReportBaseDir();
File report = new File(reportDirectory + "report.txt");
PrintWriter writer = new PrintWriter(report);
try {
// write report header
writer.println("###### EXPERIMENT ##########");
writer.println(benchmark);
// write data of collectors
writer.println();
writer.println("##### COLLECTORS ########");
for (IDataCollector collector: benchmark.getCollectors()) {
writer.println(collector);
}
} finally {
writer.close();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy