本文整理汇总了Java中org.openjdk.jmh.annotations.Level.Iteration方法的典型用法代码示例。如果您正苦于以下问题:Java Level.Iteration方法的具体用法?Java Level.Iteration怎么用?Java Level.Iteration使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.openjdk.jmh.annotations.Level
的用法示例。
在下文中一共展示了Level.Iteration方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: start
import org.openjdk.jmh.annotations.Level; //导入方法依赖的package包/类
@Setup(Level.Iteration)
public void start() {
counter = 0;
if (log == null) {
com.comfortanalytics.alog.Alog.DEFAULT_MAX_QUEUE = -1; //ignore no messages
log = com.comfortanalytics.alog.Alog.getLogger(
"Alog", new PrintStream(new NullOutputStream()));
log.getHandlers()[0].setFormatter(new SimpleFormatter());
log.setUseParentHandlers(false);
}
}
示例2: tearDownIteration
import org.openjdk.jmh.annotations.Level; //导入方法依赖的package包/类
@TearDown(Level.Iteration)
public void tearDownIteration() {
storage.write((NoResult.Quiet) storeProvider -> {
storeProvider.getJobUpdateStore().deleteAllUpdatesAndEvents();
storeProvider.getLockStore().deleteLocks();
});
}
示例3: setup
import org.openjdk.jmh.annotations.Level; //导入方法依赖的package包/类
@Setup(Level.Iteration)
public void setup() {
hub = new UniJavaRx2PubHub(PublishProcessorProxy);
obs = hub.getPub(tag);
upstream = Flowable.range(0, count).publish();
hub.addUpstream(tag, upstream);
}
示例4: stop
import org.openjdk.jmh.annotations.Level; //导入方法依赖的package包/类
@TearDown(Level.Iteration)
public void stop() {
//We're NOT testing the time it take to process the log record, only how much
//time an application spends submitting them.
((AsyncLogHandler) log.getHandlers()[0]).clearBacklog();
}
示例5: setup
import org.openjdk.jmh.annotations.Level; //导入方法依赖的package包/类
@Setup(Level.Iteration)
public void setup(){
list.clear();
}
示例6: setup
import org.openjdk.jmh.annotations.Level; //导入方法依赖的package包/类
@Setup(Level.Iteration)
public void setup() {
validatorFactory = Validation.buildDefaultValidatorFactory();
validator = validatorFactory.getValidator();
}
示例7: teardown
import org.openjdk.jmh.annotations.Level; //导入方法依赖的package包/类
@TearDown(Level.Iteration)
public void teardown() {
validatorFactory.close();
}
示例8: setup
import org.openjdk.jmh.annotations.Level; //导入方法依赖的package包/类
@Setup(Level.Iteration)
public void setup() throws SQLException
{
connection = DS.getConnection();
}
示例9: teardown
import org.openjdk.jmh.annotations.Level; //导入方法依赖的package包/类
@TearDown(Level.Iteration)
public void teardown() throws SQLException
{
connection.close();
}
示例10: clean
import org.openjdk.jmh.annotations.Level; //导入方法依赖的package包/类
@Setup(Level.Iteration)
public void clean() {
metrics.clear();
}
示例11: dropTable
import org.openjdk.jmh.annotations.Level; //导入方法依赖的package包/类
@TearDown(Level.Iteration)
public void dropTable() {
unbatch.update(TRUNCATE_TABLE);
}
示例12: clean
import org.openjdk.jmh.annotations.Level; //导入方法依赖的package包/类
@Setup(Level.Iteration)
public void clean() {
counter.set(0);
}
示例13: lag
import org.openjdk.jmh.annotations.Level; //导入方法依赖的package包/类
@Setup(Level.Iteration)
public void lag() throws InterruptedException {
TimeUnit.SECONDS.sleep(3);
}
示例14: clean
import org.openjdk.jmh.annotations.Level; //导入方法依赖的package包/类
@Setup(Level.Iteration)
public void clean() {
offersFailed = offersMade = 0;
}
示例15: emptyQ
import org.openjdk.jmh.annotations.Level; //导入方法依赖的package包/类
@TearDown(Level.Iteration)
public void emptyQ() {
// If this thread didn't drain, return
if (marker.get() == null) return;
q.clear();
}