本文整理了Java中org.openjdk.jmh.annotations.Setup.<init>()
方法的一些代码示例,展示了Setup.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Setup.<init>()
方法的具体详情如下:
包路径:org.openjdk.jmh.annotations.Setup
类名称:Setup
方法名:<init>
暂无
代码示例来源:origin: prestodb/presto
@Setup
public void setup()
{
pages = createBigintPages(POSITIONS, GROUP_COUNT, channelCount, hashEnabled);
types = Collections.nCopies(1, BIGINT);
channels = new int[1];
for (int i = 0; i < 1; i++) {
channels[i] = i;
}
}
代码示例来源:origin: prestodb/presto
@Setup
public void setup()
{
super.setup(numSortChannels, totalChannels, 1, pagesCount);
}
}
代码示例来源:origin: prestodb/presto
@Setup
public void setup()
throws Exception
{
random = new Random(0);
temporaryDirectory = createTempDir();
tinyIntNoNullFile = new File(temporaryDirectory, randomUUID().toString());
writeOrcColumnHive(tinyIntNoNullFile, ORC_12, NONE, TINYINT, createTinyIntValuesNoNull().iterator());
}
代码示例来源:origin: prestodb/presto
@Setup
public void setup()
throws Exception
{
random = new Random(0);
temporaryDirectory = createTempDir();
floatNoNullFile = new File(temporaryDirectory, randomUUID().toString());
writeOrcColumnHive(floatNoNullFile, ORC_12, NONE, REAL, createFloatValuesNoNull().iterator());
}
代码示例来源:origin: prestodb/presto
@Setup
public void setup()
throws Exception
{
random = new Random(0);
temporaryDirectory = createTempDir();
bigintNoNullFile = new File(temporaryDirectory, randomUUID().toString());
writeOrcColumnHive(bigintNoNullFile, ORC_12, NONE, BIGINT, createBigintValuesNoNull().iterator());
}
代码示例来源:origin: prestodb/presto
@Setup
public void setup()
throws Exception
{
random = new Random(0);
temporaryDirectory = createTempDir();
bigintWithNullFile = new File(temporaryDirectory, randomUUID().toString());
writeOrcColumnHive(bigintWithNullFile, ORC_12, NONE, BIGINT, createBigintValuesWithNull().iterator());
}
代码示例来源:origin: prestodb/presto
@Setup
public void setup()
throws Exception
{
random = new Random(0);
temporaryDirectory = createTempDir();
timestampWithNullFile = new File(temporaryDirectory, randomUUID().toString());
writeOrcColumnHive(timestampWithNullFile, ORC_12, NONE, TIMESTAMP, createSqlTimestampValuesWithNull().iterator());
}
代码示例来源:origin: prestodb/presto
@Setup
public void setup()
throws Exception
{
random = new Random(0);
temporaryDirectory = createTempDir();
booleanWithNullFile = new File(temporaryDirectory, randomUUID().toString());
writeOrcColumnHive(booleanWithNullFile, ORC_12, NONE, BOOLEAN, createBooleanValuesWithNull().iterator());
}
代码示例来源:origin: prestodb/presto
@Setup
public void setup()
throws Exception
{
temporary = createTempDir();
dataPath = new File(temporary, randomUUID().toString());
writeOrcColumnHive(dataPath, ORC_12, NONE, DECIMAL_TYPE, createDecimalValues().iterator());
}
代码示例来源:origin: eclipse-vertx/vert.x
@Setup
public void setup() {
ClassLoader classLoader = getClass().getClassLoader();
small = loadJsonAsBuffer(classLoader.getResource("small.json"));
large = loadJsonAsBuffer(classLoader.getResource("large.json"));
}
代码示例来源:origin: eclipse-vertx/vert.x
@Setup
public void setup() {
ClassLoader classLoader = getClass().getClassLoader();
small = loadJson(classLoader.getResource("small.json"));
large = loadJson(classLoader.getResource("large.json"));
}
代码示例来源:origin: prestodb/presto
@Setup
public void setup()
throws IOException
{
data = dataSet.createTestData(fileFormat);
targetDir.mkdirs();
dataFile = new File(targetDir, UUID.randomUUID().toString());
writeData(dataFile);
}
代码示例来源:origin: eclipse-vertx/vert.x
@Setup
public void setup() {
vertx = Vertx.vertx();
context = BenchmarkContext.create(vertx);
task = v -> consume("the-string");
}
}
代码示例来源:origin: eclipse-vertx/vert.x
@Setup
public void setup() {
nettySmallHeaders = new DefaultHttpHeaders();
vertxSmallHeaders = new VertxHttpHeaders();
}
代码示例来源:origin: prestodb/presto
@Setup
public void setup()
{
page = createInputPage(Integer.valueOf(positions), types);
topNBuilder = new GroupedTopNBuilder(types, comparator, Integer.valueOf(topN), false, new NoChannelGroupByHash());
}
代码示例来源:origin: prestodb/presto
@Setup
public void setup()
{
byte[] bytes = new byte[256 * 64];
ThreadLocalRandom.current().nextBytes(bytes);
input = Slices.wrappedBuffer(bytes).getInput();
}
}
代码示例来源:origin: prestodb/presto
@Setup
public void setup()
{
addSymbol("v1", createDecimalType(Integer.valueOf(precision), SCALE));
String expression = "CAST(v1 AS DOUBLE)";
generateRandomInputPage();
generateProcessor(expression);
}
}
代码示例来源:origin: eclipse-vertx/vert.x
@Setup
public void setup() {
byteBuf = Unpooled.buffer(1024);
encoder = new PublicEncoder();
emptyHeaders = EmptyHttpHeaders.INSTANCE;
nettySmallHeaders = new DefaultHttpHeaders();
vertxSmallHeaders = new VertxHttpHeaders();
setBaseHeaders(nettySmallHeaders);
setBaseHeaders(vertxSmallHeaders);
}
代码示例来源:origin: eclipse-vertx/vert.x
@Setup
public void setup() {
nettySmallHeaders = new DefaultHttpHeaders();
vertxSmallHeaders = new VertxHttpHeaders();
setBaseHeaders(nettySmallHeaders);
setBaseHeaders(vertxSmallHeaders);
}
代码示例来源:origin: eclipse-vertx/vert.x
@Setup
public void setup() {
seq1 = gen(1);
seq2 = gen(2);
seq4 = gen(4);
seq8 = gen(8);
seq16 = gen(16);
}
内容来源于网络,如有侵权,请联系作者删除!