/external/caliper/examples/src/main/java/examples/ |
D | CharacterBenchmark.java | 54 @Benchmark boolean isSpace(int reps) { in isSpace() argument 57 for (int i = 0; i < reps; ++i) { in isSpace() 63 for (int i = 0; i < reps; ++i) { in isSpace() 72 @Benchmark void digit(int reps) { in digit() argument 74 for (int i = 0; i < reps; ++i) { in digit() 80 for (int i = 0; i < reps; ++i) { in digit() 88 @Benchmark void getNumericValue(int reps) { in getNumericValue() argument 90 for (int i = 0; i < reps; ++i) { in getNumericValue() 96 for (int i = 0; i < reps; ++i) { in getNumericValue() 104 @Benchmark void isDigit(int reps) { in isDigit() argument [all …]
|
D | StringBuilderBenchmark.java | 31 @Benchmark void appendBoolean(int reps) { in appendBoolean() argument 33 for (int i = 0; i < reps; ++i) { in appendBoolean() 42 @Benchmark void appendChar(int reps) { in appendChar() argument 43 for (int i = 0; i < reps; ++i) { in appendChar() 51 @Benchmark void appendCharArray(int reps) { in appendCharArray() argument 53 for (int i = 0; i < reps; ++i) { in appendCharArray() 61 @Benchmark void appendCharSequence(int reps) { in appendCharSequence() argument 63 for (int i = 0; i < reps; ++i) { in appendCharSequence() 71 @Benchmark void appendDouble(int reps) { in appendDouble() argument 73 for (int i = 0; i < reps; ++i) { in appendDouble() [all …]
|
D | ExpensiveObjectsBenchmark.java | 30 @Benchmark void newDecimalFormatSymbols(int reps) { in newDecimalFormatSymbols() argument 31 for (int i = 0; i < reps; ++i) { in newDecimalFormatSymbols() 36 @Benchmark void clonedDecimalFormatSymbols(int reps) { in clonedDecimalFormatSymbols() argument 38 for (int i = 0; i < reps; ++i) { in clonedDecimalFormatSymbols() 43 @Benchmark void newNumberFormat(int reps) { in newNumberFormat() argument 44 for (int i = 0; i < reps; ++i) { in newNumberFormat() 49 @Benchmark void clonedNumberFormat(int reps) { in clonedNumberFormat() argument 51 for (int i = 0; i < reps; ++i) { in clonedNumberFormat() 56 @Benchmark void newSimpleDateFormat(int reps) { in newSimpleDateFormat() argument 57 for (int i = 0; i < reps; ++i) { in newSimpleDateFormat() [all …]
|
D | FormatterBenchmark.java | 26 @Benchmark void formatter_NoFormatting(int reps) { in formatter_NoFormatting() argument 27 for (int i = 0; i < reps; i++) { in formatter_NoFormatting() 34 @Benchmark void stringBuilder_NoFormatting(int reps) { in stringBuilder_NoFormatting() argument 35 for (int i = 0; i < reps; i++) { in stringBuilder_NoFormatting() 41 @Benchmark void formatter_OneInt(int reps) { in formatter_OneInt() argument 42 for (int i = 0; i < reps; i++) { in formatter_OneInt() 49 @Benchmark void stringBuilder_OneInt(int reps) { in stringBuilder_OneInt() argument 50 for (int i = 0; i < reps; i++) { in stringBuilder_OneInt() 58 @Benchmark void formatter_OneString(int reps) { in formatter_OneString() argument 59 for (int i = 0; i < reps; i++) { in formatter_OneString() [all …]
|
D | DoubleToStringBenchmark2.java | 43 @Benchmark int toString(int reps) { in toString() argument 47 for (int i = 0; i < reps; i++) { in toString() 52 for (int i = 0; i < reps; i++) { in toString() 59 @Benchmark int stringValueOf(int reps) { in stringValueOf() argument 63 for (int i = 0; i < reps; i++) { in stringValueOf() 68 for (int i = 0; i < reps; i++) { in stringValueOf() 75 @Benchmark int stringFormat(int reps) { in stringFormat() argument 79 for (int i = 0; i < reps; i++) { in stringFormat() 84 for (int i = 0; i < reps; i++) { in stringFormat() 91 @Benchmark int quoteTrick(int reps) { in quoteTrick() argument [all …]
|
D | VarargsBenchmark.java | 140 @Benchmark long invocation(int reps) { in invocation() argument 143 return oneArgument(reps); in invocation() 145 return twoArguments(reps); in invocation() 147 return threeArguments(reps); in invocation() 149 return fourArguments(reps); in invocation() 151 return fiveArguments(reps); in invocation() 153 return sixArguments(reps); in invocation() 159 private long oneArgument(int reps) { in oneArgument() argument 163 for (int i = 0; i < reps; i++) { in oneArgument() 169 private long twoArguments(int reps) { in twoArguments() argument [all …]
|
D | IntModBenchmark.java | 28 @Benchmark int conditional(int reps) { in conditional() argument 30 for (int i = 0; i < reps; i++) { in conditional() 41 @Benchmark int doubleRemainder(int reps) { in doubleRemainder() argument 43 for (int i = 0; i < reps; i++) { in doubleRemainder() 54 @Benchmark int rightShiftingMod(int reps) { in rightShiftingMod() argument 56 for (int i = 0; i < reps; i++) { in rightShiftingMod() 68 @Benchmark int leftShiftingMod(int reps) { in leftShiftingMod() argument 70 for (int i = 0; i < reps; i++) { in leftShiftingMod() 81 @Benchmark int wrongMod(int reps) { in wrongMod() argument 83 for (int i = 0; i < reps; i++) { in wrongMod()
|
D | BitSetBenchmark.java | 104 @Benchmark int setBitSetX64(int reps) { in setBitSetX64() argument 105 long count = 64L * reps; in setBitSetX64() 115 @Benchmark long setMaskX64(int reps) { in setMaskX64() argument 116 long count = 64L * reps; in setMaskX64() 129 @Benchmark String charsToBitSet(int reps) { in charsToBitSet() argument 135 for (int i = 0; i < reps; i++) { in charsToBitSet() 148 @Benchmark long charsToMask(int reps) { in charsToMask() argument 154 for (int i = 0; i < reps; i++) { in charsToMask() 174 @Benchmark long baselineIteration(int reps) { in baselineIteration() argument 176 for (int i = 0; i < reps; i++) { in baselineIteration()
|
D | ListModificationBenchmark.java | 66 @Benchmark void populate(int reps) throws Exception { in populate() argument 67 for (int rep = 0; rep < reps; rep++) { in populate() 75 @Benchmark void iteration(int reps) { in iteration() argument 76 for (int rep = 0; rep < reps; rep++) { in iteration() 84 @Benchmark void headAddRemove(int reps) { in headAddRemove() argument 85 for (int rep = 0; rep < reps; rep++) { in headAddRemove() 91 @Benchmark void middleAddRemove(int reps) { in middleAddRemove() argument 93 for (int rep = 0; rep < reps; rep++) { in middleAddRemove() 99 @Benchmark void tailAddRemove(int reps) { in tailAddRemove() argument 101 for (int rep = 0; rep < reps; rep++) { in tailAddRemove()
|
/external/caliper/caliper/src/main/java/com/google/caliper/worker/ |
D | AllocationStats.java | 39 private final int reps; field in AllocationStats 47 AllocationStats(int allocationCount, long allocationSize, int reps) { in AllocationStats() argument 48 this(allocationCount, allocationSize, reps, ImmutableMultiset.<Allocation>of()); in AllocationStats() 55 AllocationStats(Collection<Allocation> allocations, int reps) { in AllocationStats() argument 56 this(allocations.size(), Allocation.getTotalSize(allocations), reps, in AllocationStats() local 60 private AllocationStats(int allocationCount, long allocationSize, int reps, in AllocationStats() argument 66 checkArgument(reps >= 0, "reps (%s) was negative", reps); in AllocationStats() 67 this.reps = reps; in AllocationStats() 100 reps - baseline.reps, in minus() 120 reps - baseline.reps, in delta() [all …]
|
/external/xz-java/src/org/tukaani/xz/lzma/ |
D | LZMADecoder.java | 46 return reps[0] == -1; in endMarkerDetected() 65 lz.repeat(reps[0], len); in decode() 75 reps[3] = reps[2]; in decodeMatch() 76 reps[2] = reps[1]; in decodeMatch() 77 reps[1] = reps[0]; in decodeMatch() 83 reps[0] = distSlot; in decodeMatch() 86 reps[0] = (2 | (distSlot & 1)) << limit; in decodeMatch() 89 reps[0] |= rc.decodeReverseBitTree( in decodeMatch() 92 reps[0] |= rc.decodeDirectBits(limit - ALIGN_BITS) in decodeMatch() 94 reps[0] |= rc.decodeReverseBitTree(distAlign); in decodeMatch() [all …]
|
/external/guava/guava-tests/benchmark/com/google/common/collect/ |
D | IteratorBenchmark.java | 52 @Benchmark int arrayIndexed(int reps) { in arrayIndexed() argument 54 for (int i = 0; i < reps; i++) { in arrayIndexed() 62 @Benchmark int arrayIndexedLength(int reps) { in arrayIndexedLength() argument 64 for (int i = 0; i < reps; i++) { in arrayIndexedLength() 72 @Benchmark int arrayFor(int reps) { in arrayFor() argument 74 for (int i = 0; i < reps; i++) { in arrayFor() 82 @Benchmark int arrayListIndexed(int reps) { in arrayListIndexed() argument 84 for (int i = 0; i < reps; i++) { in arrayListIndexed() 92 @Benchmark int arrayListIndexedLength(int reps) { in arrayListIndexedLength() argument 94 for (int i = 0; i < reps; i++) { in arrayListIndexedLength() [all …]
|
D | InternersBenchmark.java | 27 @Benchmark int weakInterner(int reps) { in weakInterner() argument 29 for (int i = 0; i < reps; i++) { in weakInterner() 32 return reps; in weakInterner() 35 @Benchmark int strongInterner(int reps) { in strongInterner() argument 37 for (int i = 0; i < reps; i++) { in strongInterner() 40 return reps; in strongInterner() 44 @Benchmark int stringIntern(int reps) { in stringIntern() argument 45 for (int i = 0; i < reps; i++) { in stringIntern() 48 return reps; in stringIntern()
|
/external/caliper/tutorial/ |
D | Tutorial.java | 53 @Benchmark void timeNanoTime(int reps) { in timeNanoTime() argument 54 for (int i = 0; i < reps; i++) { in timeNanoTime() 74 @Benchmark void timeNanoTime(int reps) { in timeNanoTime() argument 75 for (int i = 0; i < reps; i++) { in timeNanoTime() 79 @Benchmark void timeCurrentTimeMillis(int reps) { in timeCurrentTimeMillis() argument 80 for (int i = 0; i < reps; i++) { in timeCurrentTimeMillis() 94 @Benchmark void timeArrayIteration_BAD(int reps) { in timeArrayIteration_BAD() argument 95 for (int i = 0; i < reps; i++) { in timeArrayIteration_BAD() 130 @Benchmark int timeArrayIteration_fixed(int reps) { in timeArrayIteration_fixed() argument 132 for (int i = 0; i < reps; i++) { in timeArrayIteration_fixed() [all …]
|
/external/guava/guava-tests/benchmark/com/google/common/hash/ |
D | ChecksumBenchmark.java | 53 @Benchmark byte crc32HashFunction(int reps) { in crc32HashFunction() argument 54 return runHashFunction(reps, Hashing.crc32()); in crc32HashFunction() 57 @Benchmark byte crc32Checksum(int reps) throws Exception { in crc32Checksum() argument 59 for (int i = 0; i < reps; i++) { in crc32Checksum() 69 @Benchmark byte adler32HashFunction(int reps) { in adler32HashFunction() argument 70 return runHashFunction(reps, Hashing.adler32()); in adler32HashFunction() 73 @Benchmark byte adler32Checksum(int reps) throws Exception { in adler32Checksum() argument 75 for (int i = 0; i < reps; i++) { in adler32Checksum() 85 private byte runHashFunction(int reps, HashFunction hashFunction) { in runHashFunction() argument 88 result ^= Hashing.crc32().hashInt(reps).asBytes()[0]; in runHashFunction() [all …]
|
/external/guava/guava-tests/benchmark/com/google/common/util/concurrent/ |
D | CycleDetectingLockFactoryBenchmark.java | 53 @Benchmark void unorderedPlainLocks(int reps) { in unorderedPlainLocks() argument 54 lockAndUnlock(new ReentrantLock(), reps); in unorderedPlainLocks() 57 @Benchmark void unorderedCycleDetectingLocks(int reps) { in unorderedCycleDetectingLocks() argument 58 lockAndUnlock(factory.newReentrantLock("foo"), reps); in unorderedCycleDetectingLocks() 61 private void lockAndUnlock(Lock lock, int reps) { in lockAndUnlock() argument 62 for (int i = 0; i < reps; i++) { in lockAndUnlock() 68 @Benchmark void orderedPlainLocks(int reps) { in orderedPlainLocks() argument 69 lockAndUnlockNested(plainLocks, reps); in orderedPlainLocks() 72 @Benchmark void orderedCycleDetectingLocks(int reps) { in orderedCycleDetectingLocks() argument 73 lockAndUnlockNested(detectingLocks, reps); in orderedCycleDetectingLocks() [all …]
|
/external/guava/guava-tests/benchmark/com/google/common/math/ |
D | LessThanBenchmark.java | 64 @Benchmark int branchFreeLtIntInlined(int reps) { in branchFreeLtIntInlined() argument 66 for (int i = 0; i < reps; i++) { in branchFreeLtIntInlined() 76 @Benchmark int branchFreeLtInt(int reps) { in branchFreeLtInt() argument 78 for (int i = 0; i < reps; i++) { in branchFreeLtInt() 88 @Benchmark int ternaryLtIntAddOutsideTernary(int reps) { in ternaryLtIntAddOutsideTernary() argument 90 for (int i = 0; i < reps; i++) { in ternaryLtIntAddOutsideTernary() 100 @Benchmark int ternaryLtIntAddInsideTernary(int reps) { in ternaryLtIntAddInsideTernary() argument 102 for (int i = 0; i < reps; i++) { in ternaryLtIntAddInsideTernary() 112 @Benchmark int branchFreeLtLongInlined(int reps) { in branchFreeLtLongInlined() argument 114 for (int i = 0; i < reps; i++) { in branchFreeLtLongInlined() [all …]
|
D | ApacheBenchmark.java | 166 @Benchmark long factorialDouble(int reps) { in factorialDouble() argument 168 for (int i = 0; i < reps; i++) { in factorialDouble() 175 @Benchmark int intGCD(int reps) { in intGCD() argument 177 for (int i = 0; i < reps; i++) { in intGCD() 184 @Benchmark long longGCD(int reps) { in longGCD() argument 186 for (int i = 0; i < reps; i++) { in longGCD() 193 @Benchmark long binomialCoefficient(int reps) { in binomialCoefficient() argument 195 for (int i = 0; i < reps; i++) { in binomialCoefficient() 202 @Benchmark int intAddOverflow(int reps) { in intAddOverflow() argument 204 for (int i = 0; i < reps; i++) { in intAddOverflow() [all …]
|
D | IntMathBenchmark.java | 55 @Benchmark int pow(int reps) { in pow() argument 57 for (int i = 0; i < reps; i++) { in pow() 64 @Benchmark int mod(int reps) { in mod() argument 66 for (int i = 0; i < reps; i++) { in mod() 73 @Benchmark int gCD(int reps) { in gCD() argument 75 for (int i = 0; i < reps; i++) { in gCD() 82 @Benchmark int factorial(int reps) { in factorial() argument 84 for (int i = 0; i < reps; i++) { in factorial() 91 @Benchmark int binomial(int reps) { in binomial() argument 93 for (int i = 0; i < reps; i++) { in binomial()
|
/external/guava/guava-tests/benchmark/com/google/common/base/ |
D | JoinerBenchmark.java | 56 @Benchmark int joinerWithStringDelimiter(int reps) { in joinerWithStringDelimiter() argument 58 for (int i = 0; i < reps; i++) { in joinerWithStringDelimiter() 67 @Benchmark int joinerWithCharacterDelimiter(int reps) { in joinerWithCharacterDelimiter() argument 69 for (int i = 0; i < reps; i++) { in joinerWithCharacterDelimiter() 79 @Benchmark int joinerInlined(int reps) { in joinerInlined() argument 81 for (int i = 0; i < reps; i++) { in joinerInlined() 101 @Benchmark int stringBuilderIsEmpty(int reps) { in stringBuilderIsEmpty() argument 103 for (int i = 0; i < reps; i++) { in stringBuilderIsEmpty() 120 @Benchmark int booleanIfFirst(int reps) { in booleanIfFirst() argument 122 for (int i = 0; i < reps; i++) { in booleanIfFirst() [all …]
|
D | AsciiBenchmark.java | 75 @Benchmark int asciiStringToUpperCase(int reps) { in asciiStringToUpperCase() argument 81 for (int i = 0; i < reps; i++) { in asciiStringToUpperCase() 87 @Benchmark int asciiCharSequenceToUpperCase(int reps) { in asciiCharSequenceToUpperCase() argument 93 for (int i = 0; i < reps; i++) { in asciiCharSequenceToUpperCase() 99 @Benchmark int stringToUpperCase(int reps) { in stringToUpperCase() argument 105 for (int i = 0; i < reps; i++) { in stringToUpperCase() 111 @Benchmark boolean equalsIgnoreCaseCharSequence(int reps) { in equalsIgnoreCaseCharSequence() argument 120 for (int i = 0; i < reps; i++) { in equalsIgnoreCaseCharSequence() 126 @Benchmark boolean equalsIgnoreCaseStringOnly(int reps) { in equalsIgnoreCaseStringOnly() argument 132 for (int i = 0; i < reps; i++) { in equalsIgnoreCaseStringOnly() [all …]
|
D | ObjectsBenchmark.java | 40 @Benchmark int hashString_2(int reps) { in hashString_2() argument 42 for (int i = 0; i < reps; i++) { in hashString_2() 48 @Benchmark int hashString_3(int reps) { in hashString_3() argument 50 for (int i = 0; i < reps; i++) { in hashString_3() 56 @Benchmark int hashString_4(int reps) { in hashString_4() argument 58 for (int i = 0; i < reps; i++) { in hashString_4() 64 @Benchmark int hashString_5(int reps) { in hashString_5() argument 66 for (int i = 0; i < reps; i++) { in hashString_5() 72 @Benchmark int hashMixed_5(int reps) { in hashMixed_5() argument 74 for (int i = 0; i < reps; i++) { in hashMixed_5()
|
/external/guava/guava-tests/benchmark/com/google/common/primitives/ |
D | UnsignedLongsBenchmark.java | 52 @Benchmark long divide(int reps) { in divide() argument 54 for (int i = 0; i < reps; i++) { in divide() 61 @Benchmark long remainder(int reps) { in remainder() argument 63 for (int i = 0; i < reps; i++) { in remainder() 70 @Benchmark long parseUnsignedLong(int reps) { in parseUnsignedLong() argument 74 int scaledReps = reps / 3 + 1; in parseUnsignedLong() 84 @Benchmark long parseDecode10(int reps) { in parseDecode10() argument 86 for (int i = 0; i < reps; i++) { in parseDecode10() 93 @Benchmark long parseDecode16(int reps) { in parseDecode16() argument 95 for (int i = 0; i < reps; i++) { in parseDecode16() [all …]
|
/external/caliper/caliper/src/test/java/com/google/caliper/runner/ |
D | MalformedBenchmarksTest.java | 78 @Benchmark void timeIt(int reps) {} in timeIt() argument 87 void timeIt(int reps) {} // not annotated in timeIt() argument 96 @Benchmark public static void timeIt(int reps) {} in timeIt() argument 106 @Benchmark void timeIt(Integer reps) {} in timeIt() argument 111 @Benchmark void timeIt(int reps, int what) {} in timeIt() argument 124 @Benchmark public void foo(long reps) {} in foo() argument 125 @Benchmark public void foo(int reps) {} in foo() argument 126 @Benchmark public void bar(long reps) {} in bar() argument 127 @Benchmark public void bar(int reps) {} in bar() argument 128 @Benchmark public void baz(int reps) {} in baz() argument [all …]
|
D | BadUserCodeTest.java | 56 @Benchmark void timeSomething(int reps) { in timeSomething() argument 57 fail("" + reps); in timeSomething() 75 @Benchmark void timeSomething(int reps) { in timeSomething() argument 76 fail("" + reps); in timeSomething() 90 @Benchmark void timeSomething(@SuppressWarnings("unused") int reps) { in timeSomething() argument 107 @Benchmark void timeSomething(int reps) { in timeSomething() argument 108 if (reps > 1) { in timeSomething() 128 @Benchmark void timeSomething(int reps) { in timeSomething() argument 129 fail("" + reps); in timeSomething() 170 @Benchmark int timeSomethingFBZ(@SuppressWarnings("unused") int reps) { in timeSomethingFBZ() argument [all …]
|