- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 46 for 5001 (0.14 sec)
-
android/guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java
/** * 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 // tweak this to control hit rate @Param("2.5") double concentration;
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) -
android/guava-tests/benchmark/com/google/common/collect/MapBenchmark.java
builder.put(element, element); } return builder.build(); } }; abstract Map<Element, Element> create(Collection<Element> contents); } @Param({"5", "50", "500", "5000", "50000"}) private int size; // TODO: look at exact (==) hits vs. equals() hits? @Param("0.9") private double hitRate; @Param("true") private boolean isUserTypeFast;
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Apr 26 20:07:17 GMT 2023 - 7.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
} assertEqualsUsingSeed(seed, expected, elements); } } } public void testCorrectOrdering_mediumHeapsPollFirst() { for (int attempts = 0; attempts < reduceIterationsIfGwt(5000); attempts++) { int size = new Random().nextInt(256) + 16; ArrayList<Integer> elements = createOrderedList(size); List<Integer> expected = ImmutableList.copyOf(elements);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 36.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
// and the approximate actual delay, to be robust to variance in thread scheduling. char overWaitNanosFirstDigit = Long.toString( thread.timeSpentBlocked - TimeUnit.MILLISECONDS.toNanos(longWait ? 5000 : 3000)) .charAt(0); if (overWaitNanosFirstDigit < '4') { overWaitNanosFirstDigit = '9'; } String nanosRegex = "[4-" + overWaitNanosFirstDigit + "][0-9]+"; assertWithMessage(
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 13 14:28:25 GMT 2024 - 46.8K bytes - Viewed (0) -
android/guava/src/com/google/common/net/InetAddresses.java
* <dt>From the IPv6 reserved documentation prefix ({@code 2001:db8::/32}), {@code "2001:db8::1"}. * <dd>{@code 20 01 0d b8 00 00 00 00 00 00 00 00 00 00 00 01} * <dt>An IPv6 "IPv4 compatible" (or "compat") address, {@code "::192.168.0.1"}. * <dd>{@code 00 00 00 00 00 00 00 00 00 00 00 00 c0 a8 00 01} * <dt>An IPv6 "IPv4 mapped" address, {@code "::ffff:192.168.0.1"}.
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri Dec 15 19:31:54 GMT 2023 - 44K bytes - Viewed (1) -
guava-tests/test/com/google/common/util/concurrent/FuturesTest.java
* to hang (possibly too quickly, but too-quick failures should be very unlikely, given that we * used to bail after 20ms during the expected-successful tests, and there we saw a failure rate * of ~1/5000, meaning that the other thread's get() call nearly always completes within 20ms if * it's going to complete at all). * * <p>[*] To avoid hangs, I've disabled the in-thread calls. This makes the test take (very
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 144.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/net/HostAndPortTest.java
checkFromStringCase("[2001::2]:85", -1, "2001::2", 85, true); checkFromStringCase("goo.gl:65535", 65536, "goo.gl", 65535, true); // No port, bad default. checkFromStringCase("google.com", -1, "google.com", -1, false); checkFromStringCase("192.0.2.1", 65536, "192.0.2.1", -1, false); checkFromStringCase("[2001::1]", -1, "2001::1", -1, false); checkFromStringCase("2001::3", 65536, "2001::3", -1, false); }
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Mon Apr 17 11:19:47 GMT 2023 - 10K bytes - Viewed (0) -
guava-tests/test/com/google/common/net/InetAddressesTest.java
assertEquals( "2001:0:0:4::8", InetAddresses.toAddrString(InetAddresses.forString("2001:0:0:4:0:0:0:8"))); assertEquals( "2001::4:5:6:7:8", InetAddresses.toAddrString(InetAddresses.forString("2001:0:0:4:5:6:7:8"))); assertEquals( "2001:0:3:4:5:6:7:8", InetAddresses.toAddrString(InetAddresses.forString("2001:0:3:4:5:6:7:8"))); assertEquals(
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 31.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/net/HostSpecifierTest.java
*/ public final class HostSpecifierTest extends TestCase { private static final ImmutableList<String> GOOD_IPS = ImmutableList.of("1.2.3.4", "2001:db8::1", "[2001:db8::1]"); private static final ImmutableList<String> BAD_IPS = ImmutableList.of("1.2.3", "2001:db8::1::::::0", "[2001:db8::1", "[::]:80"); private static final ImmutableList<String> GOOD_DOMAINS = ImmutableList.of("com", "google.com", "foo.co.uk");
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Feb 18 15:33:20 GMT 2022 - 3.7K bytes - Viewed (0) -
android/guava/src/com/google/common/net/HostSpecifier.java
* * <ul> * <li>A domain name, like {@code google.com} * <li>A IPv4 address string, like {@code 127.0.0.1} * <li>An IPv6 address string with or without brackets, like {@code [2001:db8::1]} or {@code * 2001:db8::1} * </ul> * * @throws IllegalArgumentException if the specifier is not valid. */ public static HostSpecifier fromValid(String specifier) {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Apr 05 09:18:40 GMT 2023 - 6K bytes - Viewed (0)