本文整理汇总了Java中com.google.caliper.AfterExperiment类的典型用法代码示例。如果您正苦于以下问题:Java AfterExperiment类的具体用法?Java AfterExperiment怎么用?Java AfterExperiment使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AfterExperiment类属于com.google.caliper包,在下文中一共展示了AfterExperiment类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: tearDown
import com.google.caliper.AfterExperiment; //导入依赖的package包/类
@AfterExperiment void tearDown() {
double req = requests.get();
double hit = req - misses.get();
// Currently, this is going into /dev/null, but I'll fix that
System.out.println("hit rate: " + hit / req);
}
示例2: tearDown
import com.google.caliper.AfterExperiment; //导入依赖的package包/类
@AfterExperiment
void tearDown() {
double req = requests.get();
double hit = req - misses.get();
// Currently, this is going into /dev/null, but I'll fix that
System.out.println("hit rate: " + hit / req);
}
示例3: after
import com.google.caliper.AfterExperiment; //导入依赖的package包/类
@AfterExperiment
void after() {
for (Thread thread : threads) {
thread.interrupt(); // try to get them to exit
}
threads.clear();
}
示例4: tearDown
import com.google.caliper.AfterExperiment; //导入依赖的package包/类
@AfterExperiment void tearDown() throws Exception {
executorService.shutdown();
}
示例5: after
import com.google.caliper.AfterExperiment; //导入依赖的package包/类
@AfterExperiment void after() {
for (Thread thread : threads) {
thread.interrupt(); // try to get them to exit
}
threads.clear();
}
示例6: close
import com.google.caliper.AfterExperiment; //导入依赖的package包/类
@AfterExperiment
@SuppressWarnings("unused")
void close()
{
Context.exit();
}
示例7: teardown
import com.google.caliper.AfterExperiment; //导入依赖的package包/类
@AfterExperiment
public void teardown() {
benchmark.teardown();
}
示例8: teardown
import com.google.caliper.AfterExperiment; //导入依赖的package包/类
@AfterExperiment
public void teardown() throws Exception {
benchmark.close();
}
示例9: after
import com.google.caliper.AfterExperiment; //导入依赖的package包/类
@AfterExperiment
void after() {
}
示例10: tearDown
import com.google.caliper.AfterExperiment; //导入依赖的package包/类
@AfterExperiment
void tearDown() throws Exception {
executorService.shutdown();
}
示例11: cleanup
import com.google.caliper.AfterExperiment; //导入依赖的package包/类
@After
@AfterExperiment
public void cleanup() {
tempDir.after();
executorService.shutdown();
}
示例12: tearDown
import com.google.caliper.AfterExperiment; //导入依赖的package包/类
@After
@AfterExperiment
public void tearDown() {
artifactCache.close();
executor.shutdown();
}