-
Notifications
You must be signed in to change notification settings - Fork 1
/
MetricsToCSV.java
24 lines (20 loc) · 968 Bytes
/
MetricsToCSV.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package benchmark.metrics;
import benchmark.data.exp.EExperiment;
import benchmark.data.exp.IExperiment;
import benchmark.metrics.computers.vanilla.VanillaBenchmarkComputer;
import benchmark.metrics.models.BaseDiffComparisonResult;
import benchmark.metrics.writers.MetricsCsvWriter;
import java.util.Collection;
/* Created by pourya on 2023-04-16 4:16 a.m. */
public class MetricsToCSV {
public static void main(String[] args) throws Exception {
// for (Boolean aBoolean : Set.of(true, false))
{
IExperiment experiment = EExperiment.DUM_EXP_3_0;
VanillaBenchmarkComputer computer = new VanillaBenchmarkComputer(experiment);
Collection<? extends BaseDiffComparisonResult> stats = computer.compute();
MetricsCsvWriter.exportToCSV(stats, experiment.getOutputFolder() + experiment.getName() + ".csv", true);
// new MetricsCsvWriter(computer, stats).writeStatsToCSV(false);
}
}
}