本文整理汇总了Java中com.google.caliper.api.Macrobenchmark类的典型用法代码示例。如果您正苦于以下问题:Java Macrobenchmark类的具体用法?Java Macrobenchmark怎么用?Java Macrobenchmark使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Macrobenchmark类属于com.google.caliper.api包,在下文中一共展示了Macrobenchmark类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: loadFile
import com.google.caliper.api.Macrobenchmark; //导入依赖的package包/类
@Macrobenchmark
public void loadFile() throws Exception {
FileReader reader = new FileReader(inputFile);
try {
parserializer.parse(reader);
}
finally {
reader.close();
}
}
示例2: threeDCube
import com.google.caliper.api.Macrobenchmark; //导入依赖的package包/类
@Macrobenchmark
@SuppressWarnings("unused")
public void threeDCube(int iterations)
{
runBenchmark("3d-cube.js", iterations);
}
示例3: threeDMorph
import com.google.caliper.api.Macrobenchmark; //导入依赖的package包/类
@Macrobenchmark
@SuppressWarnings("unused")
public void threeDMorph(int iterations)
{
runBenchmark("3d-morph.js", iterations);
}
示例4: accessBinaryTrees
import com.google.caliper.api.Macrobenchmark; //导入依赖的package包/类
@Macrobenchmark
@SuppressWarnings("unused")
public void accessBinaryTrees(int iterations)
{
runBenchmark("access-binary-trees.js", iterations);
}
示例5: accessFannkuch
import com.google.caliper.api.Macrobenchmark; //导入依赖的package包/类
@Macrobenchmark
@SuppressWarnings("unused")
public void accessFannkuch(int iterations)
{
runBenchmark("access-fannkuch.js", iterations);
}
示例6: accessNBody
import com.google.caliper.api.Macrobenchmark; //导入依赖的package包/类
@Macrobenchmark
@SuppressWarnings("unused")
public void accessNBody(int iterations)
{
runBenchmark("access-nbody.js", iterations);
}
示例7: accessNSieve
import com.google.caliper.api.Macrobenchmark; //导入依赖的package包/类
@Macrobenchmark
@SuppressWarnings("unused")
public void accessNSieve(int iterations)
{
runBenchmark("access-nsieve.js", iterations);
}
示例8: bitops3BitBitsInByte
import com.google.caliper.api.Macrobenchmark; //导入依赖的package包/类
@Macrobenchmark
@SuppressWarnings("unused")
public void bitops3BitBitsInByte(int iterations)
{
runBenchmark("bitops-3bit-bits-in-byte.js", iterations);
}
示例9: bitopsBitsInByte
import com.google.caliper.api.Macrobenchmark; //导入依赖的package包/类
@Macrobenchmark
@SuppressWarnings("unused")
public void bitopsBitsInByte(int iterations)
{
runBenchmark("bitops-bits-in-byte.js", iterations);
}
示例10: BitopsBitwiseAnd
import com.google.caliper.api.Macrobenchmark; //导入依赖的package包/类
@Macrobenchmark
@SuppressWarnings("unused")
public void BitopsBitwiseAnd(int iterations)
{
runBenchmark("bitops-bitwise-and.js", iterations);
}
示例11: bisopsNsieveBits
import com.google.caliper.api.Macrobenchmark; //导入依赖的package包/类
@Macrobenchmark
@SuppressWarnings("unused")
public void bisopsNsieveBits(int iterations)
{
runBenchmark("bitops-nsieve-bits.js", iterations);
}
示例12: controlFlowRecursive
import com.google.caliper.api.Macrobenchmark; //导入依赖的package包/类
@Macrobenchmark
@SuppressWarnings("unused")
public void controlFlowRecursive(int iterations)
{
runBenchmark("controlflow-recursive.js", iterations);
}
示例13: cryptoAES
import com.google.caliper.api.Macrobenchmark; //导入依赖的package包/类
@Macrobenchmark
@SuppressWarnings("unused")
public void cryptoAES(int iterations)
{
runBenchmark("crypto-aes.js", iterations);
}
示例14: cryptoMD5
import com.google.caliper.api.Macrobenchmark; //导入依赖的package包/类
@Macrobenchmark
@SuppressWarnings("unused")
public void cryptoMD5(int iterations)
{
runBenchmark("crypto-md5.js", iterations);
}
示例15: cryptoSHA1
import com.google.caliper.api.Macrobenchmark; //导入依赖的package包/类
@Macrobenchmark
@SuppressWarnings("unused")
public void cryptoSHA1(int iterations)
{
runBenchmark("crypto-sha1.js", iterations);
}