本文整理汇总了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);
}
开发者ID:zugzug90,项目名称:guava-mock,代码行数:8,代码来源:LoadingCacheSingleThreadBenchmark.java
示例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);
}
开发者ID:google,项目名称:guava,代码行数:9,代码来源:LoadingCacheSingleThreadBenchmark.java
示例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();
}
开发者ID:google,项目名称:guava,代码行数:8,代码来源:MoreExecutorsDirectExecutorBenchmark.java
示例4: tearDown
import com.google.caliper.AfterExperiment; //导入依赖的package包/类
@AfterExperiment void tearDown() throws Exception {
executorService.shutdown();
}
开发者ID:zugzug90,项目名称:guava-mock,代码行数:4,代码来源:ExecutionListBenchmark.java
示例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();
}
开发者ID:zugzug90,项目名称:guava-mock,代码行数:7,代码来源:MoreExecutorsDirectExecutorBenchmark.java
示例6: close
import com.google.caliper.AfterExperiment; //导入依赖的package包/类
@AfterExperiment
@SuppressWarnings("unused")
void close()
{
Context.exit();
}
开发者ID:F43nd1r,项目名称:rhino-android,代码行数:7,代码来源:CaliperSpiderBenchmark.java
示例7: teardown
import com.google.caliper.AfterExperiment; //导入依赖的package包/类
@AfterExperiment
public void teardown() {
benchmark.teardown();
}
开发者ID:google,项目名称:conscrypt,代码行数:5,代码来源:CaliperEngineWrapBenchmark.java
示例8: teardown
import com.google.caliper.AfterExperiment; //导入依赖的package包/类
@AfterExperiment
public void teardown() throws Exception {
benchmark.close();
}
开发者ID:google,项目名称:conscrypt,代码行数:5,代码来源:CaliperClientSocketBenchmark.java
示例9: after
import com.google.caliper.AfterExperiment; //导入依赖的package包/类
@AfterExperiment
void after() {
}
开发者ID:marcotc,项目名称:java-collection-benchmark,代码行数:4,代码来源:CollectionsBenchmark.java
示例10: tearDown
import com.google.caliper.AfterExperiment; //导入依赖的package包/类
@AfterExperiment
void tearDown() throws Exception {
executorService.shutdown();
}
开发者ID:google,项目名称:guava,代码行数:5,代码来源:ExecutionListBenchmark.java
示例11: cleanup
import com.google.caliper.AfterExperiment; //导入依赖的package包/类
@After
@AfterExperiment
public void cleanup() {
tempDir.after();
executorService.shutdown();
}
开发者ID:facebook,项目名称:buck,代码行数:7,代码来源:ParserBenchmark.java
示例12: tearDown
import com.google.caliper.AfterExperiment; //导入依赖的package包/类
@After
@AfterExperiment
public void tearDown() {
artifactCache.close();
executor.shutdown();
}
开发者ID:facebook,项目名称:buck,代码行数:7,代码来源:SQLiteArtifactCacheBenchmark.java
注:本文中的com.google.caliper.AfterExperiment类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论