com.ecfeed.core.benchmark.BenchmarkResultsHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ecfeed.junit Show documentation
Show all versions of ecfeed.junit Show documentation
An open library used to connect to the ecFeed service. It can be also used as a standalone testing tool. It is integrated with Junit5 and generates a stream of test cases using a selected algorithm (e.g. Cartesian, N-Wise). There are no limitations associated with the off-line version but the user cannot access the on-line computation servers and the model database.
The newest version!
package com.ecfeed.core.benchmark;
import java.util.ArrayList;
import java.util.List;
public final class BenchmarkResultsHelper {
public static List compareBenchmarkResults(List benchmarkA, List benchmarkB) {
List benchmarkResults = new ArrayList<>();
for (int i = 0 ; i < benchmarkA.size() ; i++) {
benchmarkResults.add(
"Case: " + benchmarkA.get(i).getNumberOfGeneratedTests() + " / " + benchmarkB.get(i).getNumberOfGeneratedTests() + " ; " +
"Time: " + benchmarkA.get(i).getProcessingTime() + " / " + benchmarkB.get(i).getProcessingTime() + " ; " +
"Memory: " + benchmarkA.get(i).getUsedMemory() + " / " + benchmarkB.get(i).getUsedMemory() + " MB | " +
benchmarkA.get(i).getNameBenchmark()
);
System.out.println(benchmarkResults.get(i));
}
return benchmarkResults;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy