public final class Perfidix extends Object
Benchmark instance, this class just
takes all classes as a String and
gives less control over the Benchmark itself. The Classes to be given are
either Benchmark-Classes or (one single) Config-Class. Additionaly, this
class holds multiple utility-methods to get Bench-Classes and Config out of a
set of Strings.
public class MyBenchmark {
public static void main(final String[] args) {
final String classNames = {
"Class1", "Class2", "Class3", "MyConfig1"
};
// either...
final BenchmarkResult result = Perfidix.runBenchs(classNames);
new TabularSummaryOutput.visitBenchmark(result);
// ...or...
Perfidix.main(classNames);
}
}
AbstractConfig,
BenchmarkResult| Modifier and Type | Method and Description |
|---|---|
static AbstractConfig |
getConfiguration(String[] classes)
Getting a configuration out of the class-files.
|
static void |
main(String[] args)
Main method for invoking benchs with classes as strings.
|
static BenchmarkResult |
runBenchs(String[] benchs)
Running one Benchmark.
|
static Benchmark |
setUpBenchmark(String[] classes,
Benchmark benchmark)
Setting up an existing benchmark with the given number of class-files
|
public static BenchmarkResult runBenchs(String[] benchs) throws ClassNotFoundException, InstantiationException, IllegalAccessException
benchs - to be insertedBenchmarkResult object with the resultsClassNotFoundException - if class cannot be foundIllegalAccessException - if conf cannot be instantiatedInstantiationException - if conf cannot be instantiatedpublic static Benchmark setUpBenchmark(String[] classes, Benchmark benchmark) throws ClassNotFoundException
classes - to be benchedbenchmark - to be set upBenchmark object with the classesClassNotFoundException - thrown if class was not found.public static AbstractConfig getConfiguration(String[] classes) throws ClassNotFoundException, InstantiationException, IllegalAccessException
AbstractConfig.StandardConfig is
given back. The AbstractConfig instance
has to have a parameter-free constructor.classes - to be examined. Only one instance of an AbstractConfig is allowed.AbstractConfig instance or the AbstractConfig.StandardConfig if none was found.ClassNotFoundException - thrown if a class was not found.InstantiationException - thrown if the AbstractConfig instance was not able to
be instaniatedIllegalAccessException - thrown if the AbstractConfig instance was not able to
be instaniatedpublic static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException
args - the classesClassNotFoundException - if class cannot be foundIllegalAccessException - if conf cannot be instantiatedInstantiationException - if conf cannot be instantiatedCopyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.