- Sort Score
- Num 10 results
- Language All
Results 131 - 140 of 229 for benchmarks (0.39 seconds)
-
android/guava-tests/benchmark/com/google/common/collect/IteratorBenchmark.java
arrayList.add(value); linkedList.add(value); } } @Benchmark int arrayIndexed(int reps) { int sum = 0; for (int i = 0; i < reps; i++) { for (int index = 0; index < size; index++) { sum += array[index].hashCode(); } } return sum; } @Benchmark int arrayIndexedLength(int reps) { int sum = 0; for (int i = 0; i < reps; i++) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 3.5K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/base/StopwatchBenchmark.java
import com.google.caliper.Benchmark; import org.jspecify.annotations.NullUnmarked; /** * Simple benchmark: create, start, read. This does not currently report the most useful result * because it's ambiguous to what extent the stopwatch benchmark is being affected by GC. * * @author Kevin Bourrillion */ @NullUnmarked public class StopwatchBenchmark { @Benchmark long stopwatch(int reps) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 1.5K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/base/ObjectsBenchmark.java
} @Benchmark 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
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.2K bytes - Click Count (0) -
benchmarks/src/main/java/org/elasticsearch/benchmark/routing/allocation/AllocationBenchmark.java
// we cannot use individual @Params as some will lead to invalid combinations which do not let the benchmark terminate. JMH offers no // support to constrain the combinations of benchmark parameters and we do not want to rely on OptionsBuilder as each benchmark would // need its own main method and we cannot execute more than one class with a main method per JAR. @Param( {Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Apr 13 08:33:41 GMT 2021 - 6.7K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/io/BaseEncodingBenchmark.java
import com.google.caliper.BeforeExperiment; import com.google.caliper.Benchmark; import com.google.caliper.Param; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.StringReader; import java.io.StringWriter; import java.util.Random; import org.jspecify.annotations.NullUnmarked; /** Benchmark for {@code BaseEncoding} performance. */ @NullUnmarkedCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 3.2K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/math/DoubleMathBenchmark.java
factorials[i] = RANDOM_SOURCE.nextInt(100); } } @Benchmark long log2(int reps) { long tmp = 0; for (int i = 0; i < reps; i++) { int j = i & ARRAY_MASK; tmp += Double.doubleToRawLongBits(DoubleMath.log2(positiveDoubles[j])); } return tmp; } @Benchmark long factorial(int reps) { long tmp = 0; for (int i = 0; i < reps; i++) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.6K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/collect/InternersBenchmark.java
*/ package com.google.common.collect; import com.google.caliper.Benchmark; import com.google.errorprone.annotations.CanIgnoreReturnValue; import org.jspecify.annotations.NullUnmarked; /** * Benchmarking interners. * * @author Dimitris Andreou */ @NullUnmarked public class InternersBenchmark { @CanIgnoreReturnValue @Benchmark int weakInterner(int reps) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Feb 11 19:03:19 GMT 2025 - 1.6K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/collect/ComparatorDelegationOverheadBenchmark.java
import static java.util.Arrays.sort; import com.google.caliper.BeforeExperiment; import com.google.caliper.Benchmark; import com.google.caliper.Param; import java.util.Arrays; import java.util.Comparator; import java.util.Random; import org.jspecify.annotations.NullUnmarked; /** * A benchmark to determine the overhead of sorting with {@link Ordering#from(Comparator)}, or withCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.6K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/util/concurrent/SingleThreadAbstractFutureBenchmark.java
} return r; } @Benchmark public long timeGetWith0Timeout(long reps) throws Exception { Facade<?> f = notDoneFuture; long r = 0; for (int i = 0; i < reps; i++) { try { f.get(0, SECONDS); r += 1; } catch (TimeoutException e) { r += 2; } } return r; } @BenchmarkCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 3.7K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/base/StopwatchBenchmark.java
import com.google.caliper.Benchmark; import org.jspecify.annotations.NullUnmarked; /** * Simple benchmark: create, start, read. This does not currently report the most useful result * because it's ambiguous to what extent the stopwatch benchmark is being affected by GC. * * @author Kevin Bourrillion */ @NullUnmarked public class StopwatchBenchmark { @Benchmark long stopwatch(int reps) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 1.5K bytes - Click Count (0)