- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 45 for 000000 (0.14 sec)
-
android/guava-tests/benchmark/com/google/common/hash/ChecksumBenchmark.java
public class ChecksumBenchmark { // Use a constant seed for all of the benchmarks to ensure apples to apples comparisons. private static final int RANDOM_SEED = new Random().nextInt(); @Param({"10", "1000", "100000", "1000000"}) private int size; private byte[] testBytes; @BeforeExperiment void setUp() { testBytes = new byte[size]; new Random(RANDOM_SEED).nextBytes(testBytes); } // CRC32
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Jun 13 16:19:15 GMT 2023 - 2.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/SipHashFunctionTest.java
public void testKnownValues() { assertSip(new byte[] {}, 0x726fdb47dd0e0e31L); assertSip(new byte[] {0x61}, 0x2ba3e8e9a71148caL); assertSip(new byte[1000000], 0x28205108397aa742L); assertSip("12345678", 0x02130609caea37ebL); assertSip("abcdef", 0x2a6e77e733c7c05dL); assertSip("SipHash", 0x8325093242a96f60L); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Sun May 05 18:02:35 GMT 2019 - 6.6K bytes - Viewed (0) -
android/guava/src/com/google/common/net/InetAddresses.java
* the address in network byte order. * * <p>Examples of IP addresses and their byte representations: * * <dl> * <dt>The IPv4 loopback address, {@code "127.0.0.1"}. * <dd>{@code 7f 00 00 01} * <dt>The IPv6 loopback address, {@code "::1"}. * <dd>{@code 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01} * <dt>From the IPv6 reserved documentation prefix ({@code 2001:db8::/32}), {@code "2001:db8::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) -
android/guava-tests/test/com/google/common/math/IntMathTest.java
} catch (ArithmeticException e) { assertFalse(expectSuccess); } } } @GwtIncompatible // log10 public void testLog10TrivialOnPowerOfTen() { int x = 1000000; for (RoundingMode mode : ALL_ROUNDING_MODES) { assertEquals(6, IntMath.log10(x, mode)); } } // Simple test to cover sqrt(0) for all types and all modes. @GwtIncompatible // sqrt
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 07 17:50:39 GMT 2024 - 24.5K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/ImmutableListCreationBenchmark.java
import java.util.List; /** * Benchmark for various ways to create an {@code ImmutableList}. * * @author Louis Wasserman */ public class ImmutableListCreationBenchmark { @Param({"10", "1000", "1000000"}) int size; private static final Object OBJECT = new Object(); @Benchmark int builderAdd(int reps) { int size = this.size; int dummy = 0; for (int rep = 0; rep < reps; rep++) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 2.3K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/primitives/UnsignedBytesBenchmark.java
} } } /* try { UnsignedBytesBenchmark bench = new UnsignedBytesBenchmark(); bench.length = 1024; bench.setUp(); bench.timeUnsafe(100000); } catch (Exception e) { }*/
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 2.8K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/collect/BinaryTreeTraverserBenchmark.java
} }; abstract <T> Iterable<T> view(T root, TreeTraverser<T> viewer); } private Iterable<BinaryNode> view; @Param Topology topology; @Param({"1", "100", "10000", "1000000"}) int size; @Param Traversal traversal; @Param({"1234"}) SpecialRandom rng; @BeforeExperiment void setUp() {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Feb 26 19:18:53 GMT 2019 - 4.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
public void testSetFuture_stackOverflow() { SettableFuture<String> orig = SettableFuture.create(); SettableFuture<String> prev = orig; for (int i = 0; i < 100000; i++) { SettableFuture<String> curr = SettableFuture.create(); prev.setFuture(curr); prev = curr; } // prev represents the 'innermost' future prev.set("done");
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Feb 13 14:28:25 GMT 2024 - 46.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java
@GwtIncompatible // Too slow in GWT (~3min fully optimized) public void testDivideRemainderEuclideanProperty() { // Use a seed so that the test is deterministic: Random r = new Random(0L); for (int i = 0; i < 1000000; i++) { long dividend = r.nextLong(); long divisor = r.nextLong(); // Test that the Euclidean property is preserved: assertThat( dividend
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Fri Feb 09 15:36:17 GMT 2024 - 13.2K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/primitives/UnsignedBytesBenchmark.java
} } } /* try { UnsignedBytesBenchmark bench = new UnsignedBytesBenchmark(); bench.length = 1024; bench.setUp(); bench.timeUnsafe(100000); } catch (Exception e) { }*/
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 2.8K bytes - Viewed (0)