com.carrotsearch.junitbenchmarks.ConsumerName Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of junit-benchmarks Show documentation
Show all versions of junit-benchmarks Show documentation
A framework for writing performance micro-benchmarks using JUnit4 annotations.
package com.carrotsearch.junitbenchmarks;
import com.carrotsearch.junitbenchmarks.h2.H2Consumer;
import com.carrotsearch.junitbenchmarks.mysql.MySQLConsumer;
/**
* Shortcuts for known {@link IResultsConsumer}.
*/
public enum ConsumerName
{
XML(XMLConsumer.class),
H2(H2Consumer.class),
CONSOLE(WriterConsumer.class),
MYSQL(MySQLConsumer.class);
/**
* Consumer class.
*/
public final Class extends IResultsConsumer> clazz;
/*
*
*/
private ConsumerName(Class extends IResultsConsumer> clazz)
{
this.clazz = clazz;
}
}