- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 213 for benchmark (0.12 sec)
-
android/guava-tests/benchmark/com/google/common/collect/MultisetIteratorBenchmark.java
// TODO(kevinb): convert to assert once benchmark tests enable asserts by default Preconditions.checkState(hashMultiset.size() == size); } @Benchmark int hashMultiset(int reps) { int sum = 0; for (int i = 0; i < reps; i++) { for (Object value : hashMultiset) { sum += value.hashCode(); } } return sum; } @Benchmark int linkedHashMultiset(int reps) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 20:24:49 UTC 2024 - 2.7K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/primitives/UnsignedBytesBenchmark.java
unsafeImpl = UnsignedBytes.LexicographicalComparatorHolder.UnsafeComparator.INSTANCE; } @Benchmark void longEqualJava(int reps) { for (int i = 0; i < reps; ++i) { if (javaImpl.compare(ba1, ba2) != 0) { throw new Error(); // deoptimization } } } @Benchmark void longEqualUnsafe(int reps) { for (int i = 0; i < reps; ++i) { if (unsafeImpl.compare(ba1, ba2) != 0) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.8K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/collect/MultisetIteratorBenchmark.java
// TODO(kevinb): convert to assert once benchmark tests enable asserts by default Preconditions.checkState(hashMultiset.size() == size); } @Benchmark int hashMultiset(int reps) { int sum = 0; for (int i = 0; i < reps; i++) { for (Object value : hashMultiset) { sum += value.hashCode(); } } return sum; } @Benchmark int linkedHashMultiset(int reps) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 20:24:49 UTC 2024 - 2.7K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/cache/ChainBenchmark.java
*/ package com.google.common.cache; import com.google.caliper.BeforeExperiment; import com.google.caliper.Benchmark; import com.google.caliper.Param; import com.google.common.cache.LocalCache.Segment; import org.checkerframework.checker.nullness.qual.Nullable; /** * Benchmark for {@code LocalCache.Segment.removeEntryFromChain}. * * @author Charles Fry */ @SuppressWarnings("CheckReturnValue")
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 17 15:19:38 UTC 2023 - 2.1K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/cache/SegmentBenchmark.java
import static com.google.common.base.Preconditions.checkState; import com.google.caliper.BeforeExperiment; import com.google.caliper.Benchmark; import com.google.caliper.Param; import com.google.common.cache.LocalCache.Segment; import java.util.concurrent.atomic.AtomicReferenceArray; /** * Benchmark for {@code LocalCache.Segment.expand()}. * * @author Charles Fry */ public class SegmentBenchmark {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 23 16:59:39 UTC 2019 - 2.1K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/collect/BinaryTreeTraverserBenchmark.java
*/ package com.google.common.collect; import com.google.caliper.BeforeExperiment; import com.google.caliper.Benchmark; import com.google.caliper.Param; import com.google.common.base.Optional; import com.google.common.primitives.Ints; import java.util.List; import java.util.Random; /** * Benchmarks for the {@code TreeTraverser} operations on binary trees. * * @author Louis Wasserman */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 26 19:18:53 UTC 2019 - 4.9K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java
import com.google.caliper.AfterExperiment; import com.google.caliper.BeforeExperiment; import com.google.caliper.Benchmark; import com.google.caliper.Param; import com.google.common.primitives.Ints; import java.util.Random; import java.util.concurrent.atomic.AtomicLong; /** * Single-threaded benchmark for {@link LoadingCache}. * * @author Charles Fry */ public class LoadingCacheSingleThreadBenchmark {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 3.4K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/cache/MapMakerComparisonBenchmark.java
cacheNoStats.put(TEST_KEY, TEST_VALUE); } @Benchmark void concurrentHashMap(int rep) { for (int i = 0; i < rep; i++) { map.get(TEST_KEY); } } @Benchmark void cacheBuilder_stats(int rep) { for (int i = 0; i < rep; i++) { cache.getIfPresent(TEST_KEY); } } @Benchmark void cacheBuilder(int rep) { for (int i = 0; i < rep; i++) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Aug 05 17:21:46 UTC 2022 - 1.9K bytes - Viewed (0) -
guava-tests/pom.xml
<version>1.7</version> <executions> <execution> <id>add-benchmark-sources</id> <phase>generate-test-sources</phase> <goals><goal>add-test-source</goal></goals> <configuration> <sources> <source>benchmark</source> </sources> </configuration> </execution> </executions>
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 18:53:31 UTC 2024 - 4.3K bytes - Viewed (0) -
compat/maven-model/src/test/java/org/apache/maven/model/v4/Xpp3DomPerfTest.java
import java.nio.file.Paths; import java.util.List; import java.util.concurrent.TimeUnit; import java.util.stream.Collectors; import org.apache.maven.api.model.InputSource; import org.openjdk.jmh.annotations.Benchmark; import org.openjdk.jmh.annotations.BenchmarkMode; import org.openjdk.jmh.annotations.Level; import org.openjdk.jmh.annotations.Measurement; import org.openjdk.jmh.annotations.Mode;
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3.3K bytes - Viewed (0)