- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 132 for 1003 (0.26 sec)
-
android/guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java
import java.util.concurrent.atomic.AtomicLong; /** * Single-threaded benchmark for {@link LoadingCache}. * * @author Charles Fry */ public class LoadingCacheSingleThreadBenchmark { @Param({"1000", "2000"}) int maximumSize; @Param("5000") int distinctKeys; @Param("4") int segments; // 1 means uniform likelihood of keys; higher means some keys are more popular
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 3.4K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/math/BigIntegerMathBenchmark.java
private static final int[] factorials = new int[ARRAY_SIZE]; private static final int[] slowFactorials = new int[ARRAY_SIZE]; private static final int[] binomials = new int[ARRAY_SIZE]; @Param({"50", "1000", "10000"}) int factorialBound; @BeforeExperiment void setUp() { for (int i = 0; i < ARRAY_SIZE; i++) { factorials[i] = RANDOM_SOURCE.nextInt(factorialBound);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 3.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableMapTest.java
// Tests that serializing a map, its keySet, and values only writes the underlying data once. Entry<Integer, Integer>[] entries = (Entry<Integer, Integer>[]) new Entry<?, ?>[1000]; for (int i = 0; i < 1000; i++) { entries[i] = ImmutableMap.entryOf(i, i); } ImmutableMap<Integer, Integer> map = RegularImmutableMap.fromEntries(entries); Set<Integer> keySet = map.keySet();
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Feb 27 13:27:08 GMT 2024 - 41.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/NetworkMutationTest.java
@RunWith(JUnit4.class) public final class NetworkMutationTest { private static final int NUM_TRIALS = 5; private static final int NUM_NODES = 20; private static final int NUM_EDGES = 100; private static final int NODE_POOL_SIZE = 1000; // must be >> NUM_NODES @Test public void directedNetwork() { testNetworkMutation(NetworkBuilder.directed()); } @Test public void undirectedNetwork() {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Apr 10 19:42:18 GMT 2024 - 4.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 37.2K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/collect/ImmutableSetHashFloodingDetectionBenchmark.java
/** Benchmark of implementations of {@link ImmutableSet#hashFloodingDetected(Object[])}. */ public class ImmutableSetHashFloodingDetectionBenchmark { private static final int TEST_CASES = 0x100; @Param({"10", "100", "1000", "10000"}) int size; @Param Impl impl; private static final Object[][] tables = new Object[TEST_CASES][]; @BeforeExperiment public void setUp() {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Jun 03 20:16:35 GMT 2021 - 6.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/DefaultNetworkImplementationsTest.java
private NetworkForTest<Integer, String> networkForTest; private static final Integer N1 = 1; private static final Integer N2 = 2; private static final Integer NODE_NOT_IN_GRAPH = 1000; private static final String E11 = "1-1"; private static final String E11_A = "1-1a"; private static final String E12 = "1-2"; private static final String E12_A = "1-2a"; private static final String E21 = "2-1";
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 7.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/StripedTest.java
} } public void testSizes() { // not bothering testing all variations, since we know they share implementations assertTrue(Striped.lock(100).size() >= 100); assertTrue(Striped.lock(256).size() == 256); assertTrue(Striped.lazyWeakLock(100).size() >= 100); assertTrue(Striped.lazyWeakLock(256).size() == 256); } @AndroidIncompatible // Presumably GC doesn't trigger, despite our efforts.
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Feb 09 22:57:07 GMT 2022 - 8.4K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/Fingerprint2011.java
/** * Implementation of Geoff Pike's fingerprint2011 hash function. See {@link Hashing#fingerprint2011} * for information on the behaviour of the algorithm. * * <p>On Intel Core2 2.66, on 1000 bytes, fingerprint2011 takes 0.9 microseconds compared to * fingerprint at 4.0 microseconds and md5 at 4.5 microseconds. * * <p>Note to maintainers: This implementation relies on signed arithmetic being bit-wise equivalent
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Dec 28 17:50:25 GMT 2021 - 6.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/HashBiMapTest.java
HashBiMap<String, String> bimap = HashBiMap.create(map); assertEquals("dollar", bimap.get("canada")); assertEquals("canada", bimap.inverse().get("dollar")); } private static final int N = 1000; public void testBashIt() throws Exception { BiMap<Integer, Integer> bimap = HashBiMap.create(N); BiMap<Integer, Integer> inverse = bimap.inverse(); for (int i = 0; i < N; i++) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Feb 19 20:34:55 GMT 2024 - 8.4K bytes - Viewed (0)