/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 …]
|
/external/guava/guava-tests/benchmark/com/google/common/collect/ |
D | IteratorBenchmark.java | 54 int arrayIndexed(int reps) { in arrayIndexed() argument 56 for (int i = 0; i < reps; i++) { in arrayIndexed() 65 int arrayIndexedLength(int reps) { in arrayIndexedLength() argument 67 for (int i = 0; i < reps; i++) { in arrayIndexedLength() 76 int arrayFor(int reps) { in arrayFor() argument 78 for (int i = 0; i < reps; i++) { in arrayFor() 87 int arrayListIndexed(int reps) { in arrayListIndexed() argument 89 for (int i = 0; i < reps; i++) { in arrayListIndexed() 98 int arrayListIndexedLength(int reps) { in arrayListIndexedLength() argument 100 for (int i = 0; i < reps; i++) { in arrayListIndexedLength() [all …]
|
/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/android/guava-tests/benchmark/com/google/common/collect/ |
D | IteratorBenchmark.java | 54 int arrayIndexed(int reps) { in arrayIndexed() argument 56 for (int i = 0; i < reps; i++) { in arrayIndexed() 65 int arrayIndexedLength(int reps) { in arrayIndexedLength() argument 67 for (int i = 0; i < reps; i++) { in arrayIndexedLength() 76 int arrayFor(int reps) { in arrayFor() argument 78 for (int i = 0; i < reps; i++) { in arrayFor() 87 int arrayListIndexed(int reps) { in arrayListIndexed() argument 89 for (int i = 0; i < reps; i++) { in arrayListIndexed() 98 int arrayListIndexedLength(int reps) { in arrayListIndexedLength() argument 100 for (int i = 0; i < reps; i++) { in arrayListIndexedLength() [all …]
|
D | InternersBenchmark.java | 28 int weakInterner(int reps) { in weakInterner() argument 30 for (int i = 0; i < reps; i++) { in weakInterner() 33 return reps; in weakInterner() 37 int strongInterner(int reps) { in strongInterner() argument 39 for (int i = 0; i < reps; i++) { in strongInterner() 42 return reps; in strongInterner() 46 int stringIntern(int reps) { in stringIntern() argument 47 for (int i = 0; i < reps; i++) { in stringIntern() 50 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/util/concurrent/ |
D | SingleThreadAbstractFutureBenchmark.java | 46 public long timeComplete_Normal(int reps) throws Exception { in timeComplete_Normal() argument 48 List<Facade<Integer>> list = new ArrayList<>(reps); in timeComplete_Normal() 49 for (int i = 0; i < reps; i++) { in timeComplete_Normal() 54 for (int i = 0; i < reps; i++) { in timeComplete_Normal() 61 public long timeComplete_Failure(int reps) throws Exception { in timeComplete_Failure() argument 63 List<Facade<Integer>> list = new ArrayList<>(reps); in timeComplete_Failure() 64 for (int i = 0; i < reps; i++) { in timeComplete_Failure() 69 for (int i = 0; i < reps; i++) { in timeComplete_Failure() 82 public long timeComplete_Cancel(int reps) throws Exception { in timeComplete_Cancel() argument 84 List<Facade<Integer>> list = new ArrayList<>(reps); in timeComplete_Cancel() [all …]
|
D | CycleDetectingLockFactoryBenchmark.java | 53 void unorderedPlainLocks(int reps) { in unorderedPlainLocks() argument 54 lockAndUnlock(new ReentrantLock(), reps); in unorderedPlainLocks() 58 void unorderedCycleDetectingLocks(int reps) { in unorderedCycleDetectingLocks() argument 59 lockAndUnlock(factory.newReentrantLock("foo"), reps); in unorderedCycleDetectingLocks() 62 private static void lockAndUnlock(Lock lock, int reps) { in lockAndUnlock() argument 63 for (int i = 0; i < reps; i++) { in lockAndUnlock() 70 void orderedPlainLocks(int reps) { in orderedPlainLocks() argument 71 lockAndUnlockNested(plainLocks, reps); in orderedPlainLocks() 75 void orderedCycleDetectingLocks(int reps) { in orderedCycleDetectingLocks() argument 76 lockAndUnlockNested(detectingLocks, reps); in orderedCycleDetectingLocks() [all …]
|
/external/guava/android/guava-tests/benchmark/com/google/common/util/concurrent/ |
D | SingleThreadAbstractFutureBenchmark.java | 46 public long timeComplete_Normal(int reps) throws Exception { in timeComplete_Normal() argument 48 List<Facade<Integer>> list = new ArrayList<>(reps); in timeComplete_Normal() 49 for (int i = 0; i < reps; i++) { in timeComplete_Normal() 54 for (int i = 0; i < reps; i++) { in timeComplete_Normal() 61 public long timeComplete_Failure(int reps) throws Exception { in timeComplete_Failure() argument 63 List<Facade<Integer>> list = new ArrayList<>(reps); in timeComplete_Failure() 64 for (int i = 0; i < reps; i++) { in timeComplete_Failure() 69 for (int i = 0; i < reps; i++) { in timeComplete_Failure() 82 public long timeComplete_Cancel(int reps) throws Exception { in timeComplete_Cancel() argument 84 List<Facade<Integer>> list = new ArrayList<>(reps); in timeComplete_Cancel() [all …]
|
D | CycleDetectingLockFactoryBenchmark.java | 53 void unorderedPlainLocks(int reps) { in unorderedPlainLocks() argument 54 lockAndUnlock(new ReentrantLock(), reps); in unorderedPlainLocks() 58 void unorderedCycleDetectingLocks(int reps) { in unorderedCycleDetectingLocks() argument 59 lockAndUnlock(factory.newReentrantLock("foo"), reps); in unorderedCycleDetectingLocks() 62 private static void lockAndUnlock(Lock lock, int reps) { in lockAndUnlock() argument 63 for (int i = 0; i < reps; i++) { in lockAndUnlock() 70 void orderedPlainLocks(int reps) { in orderedPlainLocks() argument 71 lockAndUnlockNested(plainLocks, reps); in orderedPlainLocks() 75 void orderedCycleDetectingLocks(int reps) { in orderedCycleDetectingLocks() argument 76 lockAndUnlockNested(detectingLocks, reps); in orderedCycleDetectingLocks() [all …]
|
/external/guava/android/guava-tests/benchmark/com/google/common/hash/ |
D | ChecksumBenchmark.java | 57 byte crc32HashFunction(int reps) { in crc32HashFunction() argument 58 return runHashFunction(reps, Hashing.crc32()); in crc32HashFunction() 62 byte crc32Checksum(int reps) throws Exception { in crc32Checksum() argument 64 for (int i = 0; i < reps; i++) { in crc32Checksum() 75 byte adler32HashFunction(int reps) { in adler32HashFunction() argument 76 return runHashFunction(reps, Hashing.adler32()); in adler32HashFunction() 80 byte adler32Checksum(int reps) throws Exception { in adler32Checksum() argument 82 for (int i = 0; i < reps; i++) { in adler32Checksum() 92 private byte runHashFunction(int reps, HashFunction hashFunction) { in runHashFunction() argument 95 result ^= Hashing.crc32().hashInt(reps).asBytes()[0]; in runHashFunction() [all …]
|
/external/guava/guava-tests/benchmark/com/google/common/hash/ |
D | ChecksumBenchmark.java | 57 byte crc32HashFunction(int reps) { in crc32HashFunction() argument 58 return runHashFunction(reps, Hashing.crc32()); in crc32HashFunction() 62 byte crc32Checksum(int reps) throws Exception { in crc32Checksum() argument 64 for (int i = 0; i < reps; i++) { in crc32Checksum() 75 byte adler32HashFunction(int reps) { in adler32HashFunction() argument 76 return runHashFunction(reps, Hashing.adler32()); in adler32HashFunction() 80 byte adler32Checksum(int reps) throws Exception { in adler32Checksum() argument 82 for (int i = 0; i < reps; i++) { in adler32Checksum() 92 private byte runHashFunction(int reps, HashFunction hashFunction) { in runHashFunction() argument 95 result ^= Hashing.crc32().hashInt(reps).asBytes()[0]; in runHashFunction() [all …]
|
/external/webrtc/third_party/abseil-cpp/absl/strings/ |
D | str_replace_test.cc | 265 int reps; in TEST() local 269 reps = absl::StrReplaceAll({{"", ""}, {"x", ""}, {"", "y"}, {"x", "y"}}, &s); in TEST() 270 EXPECT_EQ(reps, 0); in TEST() 275 reps = absl::StrReplaceAll({{"", ""}, {"", "y"}, {"x", ""}}, &s); in TEST() 276 EXPECT_EQ(reps, 0); in TEST() 281 reps = absl::StrReplaceAll({{"a", "x"}, {"b", "y"}, {"c", "z"}}, &s); in TEST() 282 EXPECT_EQ(reps, 3); in TEST() 285 reps = absl::StrReplaceAll({{"z", "x"}, {"x", "y"}, {"y", "z"}}, &s); in TEST() 286 EXPECT_EQ(reps, 3); in TEST() 291 reps = absl::StrReplaceAll({{"a", "x"}, {"ab", "xy"}, {"abc", "xyz"}}, &s); in TEST() [all …]
|
/external/angle/third_party/abseil-cpp/absl/strings/ |
D | str_replace_test.cc | 265 int reps; in TEST() local 269 reps = absl::StrReplaceAll({{"", ""}, {"x", ""}, {"", "y"}, {"x", "y"}}, &s); in TEST() 270 EXPECT_EQ(reps, 0); in TEST() 275 reps = absl::StrReplaceAll({{"", ""}, {"", "y"}, {"x", ""}}, &s); in TEST() 276 EXPECT_EQ(reps, 0); in TEST() 281 reps = absl::StrReplaceAll({{"a", "x"}, {"b", "y"}, {"c", "z"}}, &s); in TEST() 282 EXPECT_EQ(reps, 3); in TEST() 285 reps = absl::StrReplaceAll({{"z", "x"}, {"x", "y"}, {"y", "z"}}, &s); in TEST() 286 EXPECT_EQ(reps, 3); in TEST() 291 reps = absl::StrReplaceAll({{"a", "x"}, {"ab", "xy"}, {"abc", "xyz"}}, &s); in TEST() [all …]
|
/external/abseil-cpp/absl/strings/ |
D | str_replace_test.cc | 265 int reps; in TEST() local 269 reps = absl::StrReplaceAll({{"", ""}, {"x", ""}, {"", "y"}, {"x", "y"}}, &s); in TEST() 270 EXPECT_EQ(reps, 0); in TEST() 275 reps = absl::StrReplaceAll({{"", ""}, {"", "y"}, {"x", ""}}, &s); in TEST() 276 EXPECT_EQ(reps, 0); in TEST() 281 reps = absl::StrReplaceAll({{"a", "x"}, {"b", "y"}, {"c", "z"}}, &s); in TEST() 282 EXPECT_EQ(reps, 3); in TEST() 285 reps = absl::StrReplaceAll({{"z", "x"}, {"x", "y"}, {"y", "z"}}, &s); in TEST() 286 EXPECT_EQ(reps, 3); in TEST() 291 reps = absl::StrReplaceAll({{"a", "x"}, {"ab", "xy"}, {"abc", "xyz"}}, &s); in TEST() [all …]
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/ |
D | str_replace_test.cc | 265 int reps; in TEST() local 269 reps = absl::StrReplaceAll({{"", ""}, {"x", ""}, {"", "y"}, {"x", "y"}}, &s); in TEST() 270 EXPECT_EQ(reps, 0); in TEST() 275 reps = absl::StrReplaceAll({{"", ""}, {"", "y"}, {"x", ""}}, &s); in TEST() 276 EXPECT_EQ(reps, 0); in TEST() 281 reps = absl::StrReplaceAll({{"a", "x"}, {"b", "y"}, {"c", "z"}}, &s); in TEST() 282 EXPECT_EQ(reps, 3); in TEST() 285 reps = absl::StrReplaceAll({{"z", "x"}, {"x", "y"}, {"y", "z"}}, &s); in TEST() 286 EXPECT_EQ(reps, 3); in TEST() 291 reps = absl::StrReplaceAll({{"a", "x"}, {"ab", "xy"}, {"abc", "xyz"}}, &s); in TEST() [all …]
|
/external/openscreen/third_party/abseil/src/absl/strings/ |
D | str_replace_test.cc | 265 int reps; in TEST() local 269 reps = absl::StrReplaceAll({{"", ""}, {"x", ""}, {"", "y"}, {"x", "y"}}, &s); in TEST() 270 EXPECT_EQ(reps, 0); in TEST() 275 reps = absl::StrReplaceAll({{"", ""}, {"", "y"}, {"x", ""}}, &s); in TEST() 276 EXPECT_EQ(reps, 0); in TEST() 281 reps = absl::StrReplaceAll({{"a", "x"}, {"b", "y"}, {"c", "z"}}, &s); in TEST() 282 EXPECT_EQ(reps, 3); in TEST() 285 reps = absl::StrReplaceAll({{"z", "x"}, {"x", "y"}, {"y", "z"}}, &s); in TEST() 286 EXPECT_EQ(reps, 3); in TEST() 291 reps = absl::StrReplaceAll({{"a", "x"}, {"ab", "xy"}, {"abc", "xyz"}}, &s); in TEST() [all …]
|
/external/libtextclassifier/abseil-cpp/absl/strings/ |
D | str_replace_test.cc | 265 int reps; in TEST() local 269 reps = absl::StrReplaceAll({{"", ""}, {"x", ""}, {"", "y"}, {"x", "y"}}, &s); in TEST() 270 EXPECT_EQ(reps, 0); in TEST() 275 reps = absl::StrReplaceAll({{"", ""}, {"", "y"}, {"x", ""}}, &s); in TEST() 276 EXPECT_EQ(reps, 0); in TEST() 281 reps = absl::StrReplaceAll({{"a", "x"}, {"b", "y"}, {"c", "z"}}, &s); in TEST() 282 EXPECT_EQ(reps, 3); in TEST() 285 reps = absl::StrReplaceAll({{"z", "x"}, {"x", "y"}, {"y", "z"}}, &s); in TEST() 286 EXPECT_EQ(reps, 3); in TEST() 291 reps = absl::StrReplaceAll({{"a", "x"}, {"ab", "xy"}, {"abc", "xyz"}}, &s); in TEST() [all …]
|
/external/guava/guava-tests/benchmark/com/google/common/math/ |
D | LessThanBenchmark.java | 64 int branchFreeLtIntInlined(int reps) { in branchFreeLtIntInlined() argument 66 for (int i = 0; i < reps; i++) { in branchFreeLtIntInlined() 77 int branchFreeLtInt(int reps) { in branchFreeLtInt() argument 79 for (int i = 0; i < reps; i++) { in branchFreeLtInt() 90 int ternaryLtIntAddOutsideTernary(int reps) { in ternaryLtIntAddOutsideTernary() argument 92 for (int i = 0; i < reps; i++) { in ternaryLtIntAddOutsideTernary() 103 int ternaryLtIntAddInsideTernary(int reps) { in ternaryLtIntAddInsideTernary() argument 105 for (int i = 0; i < reps; i++) { in ternaryLtIntAddInsideTernary() 116 int branchFreeLtLongInlined(int reps) { in branchFreeLtLongInlined() argument 118 for (int i = 0; i < reps; i++) { in branchFreeLtLongInlined() [all …]
|
/external/guava/android/guava-tests/benchmark/com/google/common/math/ |
D | LessThanBenchmark.java | 64 int branchFreeLtIntInlined(int reps) { in branchFreeLtIntInlined() argument 66 for (int i = 0; i < reps; i++) { in branchFreeLtIntInlined() 77 int branchFreeLtInt(int reps) { in branchFreeLtInt() argument 79 for (int i = 0; i < reps; i++) { in branchFreeLtInt() 90 int ternaryLtIntAddOutsideTernary(int reps) { in ternaryLtIntAddOutsideTernary() argument 92 for (int i = 0; i < reps; i++) { in ternaryLtIntAddOutsideTernary() 103 int ternaryLtIntAddInsideTernary(int reps) { in ternaryLtIntAddInsideTernary() argument 105 for (int i = 0; i < reps; i++) { in ternaryLtIntAddInsideTernary() 116 int branchFreeLtLongInlined(int reps) { in branchFreeLtLongInlined() argument 118 for (int i = 0; i < reps; i++) { in branchFreeLtLongInlined() [all …]
|