Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for 1600000 (0.15 sec)

  1. guava-tests/benchmark/com/google/common/collect/SetContainsBenchmark.java

      // Start at 4.88 then multiply by 2*2^phi <evil cackle> - The goal is be uniform
      // yet visit a variety of "values-relative-to-the-next-power-of-2"
      @Param({"5", "30", "180", "1100", "6900", "43000", "260000"}) // "1600000", "9800000"
      private int size;
    
      // TODO(kevinb): look at exact (==) hits vs. equals() hits?
      @Param({"0.2", "0.8"})
      private double hitRate;
    
      @Param("true")
      private boolean isUserTypeFast;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.4K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/collect/SetContainsBenchmark.java

      // Start at 4.88 then multiply by 2*2^phi <evil cackle> - The goal is be uniform
      // yet visit a variety of "values-relative-to-the-next-power-of-2"
      @Param({"5", "30", "180", "1100", "6900", "43000", "260000"}) // "1600000", "9800000"
      private int size;
    
      // TODO(kevinb): look at exact (==) hits vs. equals() hits?
      @Param({"0.2", "0.8"})
      private double hitRate;
    
      @Param("true")
      private boolean isUserTypeFast;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.4K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/hash/HashFunctionBenchmark.java

     */
    public class HashFunctionBenchmark {
    
      // Use a statically configured random instance for all of the benchmarks
      private static final Random random = new Random(42);
    
      @Param({"10", "1000", "100000", "1000000"})
      private int size;
    
      @Param HashFunctionEnum hashFunctionEnum;
    
      private byte[] testBytes;
    
      @BeforeExperiment
      void setUp() {
        testBytes = new byte[size];
        random.nextBytes(testBytes);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.3K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java

     *   <li>hashMethod: how to hash the data (using the Hashing API or the MessageDigest API).
     * </ul>
     *
     * @author Kurt Alfred Kluever
     */
    public class MessageDigestAlgorithmBenchmark {
      @Param({"10", "1000", "100000", "1000000"})
      int size;
    
      @Param Algorithm algorithm;
      @Param HashMethod hashMethod;
    
      private enum HashMethod {
        MESSAGE_DIGEST_API() {
          @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.5K bytes
    - Viewed (0)
  5. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

        assertThat(bf.approximateElementCount()).isAtMost((long) (sizeGuess * 1.01));
      }
    
      public void testCreateAndCheckMitz32BloomFilterWithKnownFalsePositives() {
        int numInsertions = 1000000;
        BloomFilter<String> bf =
            BloomFilter.create(
                Funnels.unencodedCharsFunnel(),
                numInsertions,
                0.03,
                BloomFilterStrategies.MURMUR128_MITZ_32);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java

     * @author Kurt Alfred Kluever
     */
    public class HashCodeBenchmark {
    
      // Use a statically configured random instance for all of the benchmarks
      private static final Random random = new Random(42);
    
      @Param({"1000", "100000"})
      private int size;
    
      @Param WhereToDiffer whereToDiffer;
    
      @Param EqualsImplementation equalsImpl;
    
      private enum WhereToDiffer {
        ONE_PERCENT_IN,
        LAST_BYTE,
        NOT_AT_ALL;
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.9K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java

     * @author Kurt Alfred Kluever
     */
    public class HashCodeBenchmark {
    
      // Use a statically configured random instance for all of the benchmarks
      private static final Random random = new Random(42);
    
      @Param({"1000", "100000"})
      private int size;
    
      @Param WhereToDiffer whereToDiffer;
    
      @Param EqualsImplementation equalsImpl;
    
      private enum WhereToDiffer {
        ONE_PERCENT_IN,
        LAST_BYTE,
        NOT_AT_ALL;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.9K bytes
    - Viewed (0)
  9. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 26 19:18:53 GMT 2019
    - 4.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

      /** https://code.google.com/p/guava-libraries/issues/detail?id=1791 */
      public void testInfinity_BustyTimeElapsed() {
        RateLimiter limiter = RateLimiter.create(Double.POSITIVE_INFINITY, stopwatch);
        stopwatch.instant += 1000000;
        limiter.setRate(2.0);
        for (int i = 0; i < 5; i++) {
          limiter.acquire();
        }
        assertEvents(
            "R0.00", // First comes the saved-up burst, which defaults to a 1-second burst (2 requests).
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
Back to top