Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for 45 (0.13 sec)

  1. guava-tests/test/com/google/common/cache/CacheEvictionTest.java

                .concurrencyLevel(1)
                .maximumWeight(45)
                .weigher(intKeyWeigher())
                .build(loader);
        CacheTesting.warmUp(cache, 0, 10);
        Set<Integer> keySet = cache.asMap().keySet();
        assertThat(keySet).containsExactly(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
    
        // add an at-the-maximum-weight entry
        getAll(cache, asList(45));
        CacheTesting.drainRecencyQueues(cache);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 14.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/HashingTest.java

       *
       */
      public void testConsistentHash_linearCongruentialGeneratorCompatibility() {
        int[] golden100 = {
          0, 55, 62, 8, 45, 59, 86, 97, 82, 59,
          73, 37, 17, 56, 86, 21, 90, 37, 38, 83
        };
        for (int i = 0; i < golden100.length; i++) {
          assertEquals(golden100[i], Hashing.consistentHash(i, 100));
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/CacheEvictionTest.java

                .concurrencyLevel(1)
                .maximumWeight(45)
                .weigher(intKeyWeigher())
                .build(loader);
        CacheTesting.warmUp(cache, 0, 10);
        Set<Integer> keySet = cache.asMap().keySet();
        assertThat(keySet).containsExactly(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
    
        // add an at-the-maximum-weight entry
        getAll(cache, asList(45));
        CacheTesting.drainRecencyQueues(cache);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 14.9K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/collect/SetIterationBenchmark.java

    import java.util.Set;
    
    /**
     * Test iteration speed at various size for {@link Set} instances.
     *
     * @author Christopher Swenson
     */
    public class SetIterationBenchmark {
      @Param({
        "3", "6", "11", "23", "45", "91", "181", "362", "724", "1448", "2896", "5793", "11585", "23170",
        "46341", "92682", "185364", "370728", "741455", "1482910", "2965821", "5931642"
      })
      private int size;
    
      // "" means no fixed seed
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.9K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/base/ObjectsBenchmark.java

    /**
     * Some microbenchmarks for the {@link com.google.common.base.Objects} class.
     *
     * @author Ben L. Titzer
     */
    public class ObjectsBenchmark {
    
      private static final Integer I0 = -45;
      private static final Integer I1 = -1;
      private static final Integer I2 = 3;
      private static final String S0 = "3";
      private static final String S1 = "Ninety five";
      private static final String S2 = "44 one million";
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.2K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/collect/SetCreationBenchmark.java

     * {@code Set} implementations.
     *
     * @author Christopher Swenson
     */
    public class SetCreationBenchmark {
      @Param({
        "3", "6", "11", "23", "45", "91", "181", "362", "724", "1448", "2896", "5793", "11585", "23170",
        "46341", "92682", "185364", "370728", "741455", "1482910", "2965821", "5931642"
      })
      private int size;
    
      // "" means no fixed seed
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.8K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/collect/SetIterationBenchmark.java

    import java.util.Set;
    
    /**
     * Test iteration speed at various size for {@link Set} instances.
     *
     * @author Christopher Swenson
     */
    public class SetIterationBenchmark {
      @Param({
        "3", "6", "11", "23", "45", "91", "181", "362", "724", "1448", "2896", "5793", "11585", "23170",
        "46341", "92682", "185364", "370728", "741455", "1482910", "2965821", "5931642"
      })
      private int size;
    
      // "" means no fixed seed
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.9K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/collect/SetCreationBenchmark.java

     * {@code Set} implementations.
     *
     * @author Christopher Swenson
     */
    public class SetCreationBenchmark {
      @Param({
        "3", "6", "11", "23", "45", "91", "181", "362", "724", "1448", "2896", "5793", "11585", "23170",
        "46341", "92682", "185364", "370728", "741455", "1482910", "2965821", "5931642"
      })
      private int size;
    
      // "" means no fixed seed
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.8K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/base/ObjectsBenchmark.java

    /**
     * Some microbenchmarks for the {@link com.google.common.base.Objects} class.
     *
     * @author Ben L. Titzer
     */
    public class ObjectsBenchmark {
    
      private static final Integer I0 = -45;
      private static final Integer I1 = -1;
      private static final Integer I2 = 3;
      private static final String S0 = "3";
      private static final String S1 = "Ninety five";
      private static final String S2 = "44 one million";
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // used only from suite
      public static class SampleLongs extends SampleElements<Long> {
        public SampleLongs() {
          super(1L << 31, 1L << 33, 1L << 36, 1L << 40, 1L << 45);
        }
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 20.2K bytes
    - Viewed (0)
Back to top