- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 580 for refs (0.02 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Dec 28 01:26:26 GMT 2024 - 4.4K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/collect/SortedCopyBenchmark.java
} @Benchmark int collections(int reps) { int dummy = 0; // Yes, this could be done more elegantly if (mutable) { for (int i = 0; i < reps; i++) { List<Integer> copy = new ArrayList<>(input); sort(copy); dummy += copy.get(0); } } else { for (int i = 0; i < reps; i++) { List<Integer> copy = new ArrayList<>(input);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 3.5K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java
@SuppressWarnings("InlineMeInliner") // String.repeat unavailable under Java 8 void setUp() { originalString = Strings.repeat("x", length); } @Benchmark void oldRepeat(long reps) { for (int i = 0; i < reps; i++) { String x = oldRepeat(originalString, count); if (x.length() != (originalString.length() * count)) { throw new RuntimeException("Wrong length: " + x); } } }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 3.4K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/base/ObjectsBenchmark.java
int hashString_4(int reps) { int dummy = 0; for (int i = 0; i < reps; i++) { dummy += Objects.hashCode(S0, S1, S2, S3); } return dummy; } @Benchmark int hashString_5(int reps) { int dummy = 0; for (int i = 0; i < reps; i++) { dummy += Objects.hashCode(S0, S1, S2, S3, S4); } return dummy; } @Benchmark int hashMixed_5(int reps) { int dummy = 0;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.2K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java
return striped; } @Benchmark long timeConstruct(long reps) { long rvalue = 0; int numStripesLocal = numStripes; Impl implLocal = impl; for (long i = 0; i < reps; i++) { rvalue += implLocal.get(numStripesLocal).hashCode(); } return rvalue; } @Benchmark long timeGetAt(long reps) { long rvalue = 0; int[] stripesLocal = stripes;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 4K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java
return striped; } @Benchmark long timeConstruct(long reps) { long rvalue = 0; int numStripesLocal = numStripes; Impl implLocal = impl; for (long i = 0; i < reps; i++) { rvalue += implLocal.get(numStripesLocal).hashCode(); } return rvalue; } @Benchmark long timeGetAt(long reps) { long rvalue = 0; int[] stripesLocal = stripes;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 4K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/math/BigIntegerMathBenchmark.java
} @Benchmark int slowFactorial(int reps) { int tmp = 0; for (int i = 0; i < reps; i++) { int j = i & ARRAY_MASK; tmp += oldSlowFactorial(slowFactorials[j]).intValue(); } return tmp; } @Benchmark int factorial(int reps) { int tmp = 0; for (int i = 0; i < reps; i++) { int j = i & ARRAY_MASK;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 3.5K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/base/StopwatchBenchmark.java
@Benchmark long stopwatch(int reps) { long total = 0; for (int i = 0; i < reps; i++) { Stopwatch s = Stopwatch.createStarted(); // here is where you would do something total += s.elapsed(NANOSECONDS); } return total; } @Benchmark long manual(int reps) { long total = 0; for (int i = 0; i < reps; i++) { long start = System.nanoTime();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 1.5K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/collect/ImmutableListCreationBenchmark.java
int copyArrayList(int reps) { int size = this.size; int dummy = 0; for (int rep = 0; rep < reps; rep++) { List<Object> builder = new ArrayList<>(); for (int i = 0; i < size; i++) { builder.add(OBJECT); } dummy += ImmutableList.copyOf(builder).size(); } return dummy; } @Benchmark int copyPreSizedArrayList(int reps) { int size = this.size; int tmp = 0;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 2.4K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/math/DoubleMathRoundingBenchmark.java
} } @Benchmark int roundToInt(int reps) { int tmp = 0; for (int i = 0; i < reps; i++) { int j = i & ARRAY_MASK; tmp += DoubleMath.roundToInt(doubleInIntRange[j], mode); } return tmp; } @Benchmark long roundToLong(int reps) { long tmp = 0; for (int i = 0; i < reps; i++) { int j = i & ARRAY_MASK;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.7K bytes - Click Count (0)