Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 194 for runcom (0.19 sec)

  1. guava-tests/benchmark/com/google/common/hash/HashFunctionBenchmark.java

      // 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);
      }
    
      @Benchmark
    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)
  2. android/guava-tests/benchmark/com/google/common/collect/BinaryTreeTraverserBenchmark.java

            }
            return root;
          }
        },
        RANDOM {
          /**
           * Generates a tree with topology selected uniformly at random from the topologies of binary
           * trees of the specified size.
           */
          @Override
          Optional<BinaryNode> createTree(int size, Random rng) {
            int[] keys = new int[size];
            for (int i = 0; i < size; i++) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 26 19:18:53 GMT 2019
    - 4.9K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/collect/HashMultisetAddPresentBenchmark.java

      int[] queries = new int[ARRAY_SIZE];
    
      @BeforeExperiment
      void setUp() {
        Random random = new Random();
        multisets.clear();
        for (int i = 0; i < ARRAY_SIZE; i++) {
          HashMultiset<Integer> multiset = HashMultiset.<Integer>create();
          multisets.add(multiset);
          queries[i] = random.nextInt();
          multiset.add(queries[i]);
        }
      }
    
      @Benchmark
      int add(int reps) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.6K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/base/WhitespaceMatcherBenchmark.java

        return new String(result);
      }
    
      private static String newTestString(Random random, BitSet bitSet, int percentMatching) {
        final String allMatchingChars = allMatchingChars(bitSet);
        final char[] result = new char[STRING_LENGTH];
        // Fill with matching chars.
        for (int i = 0; i < result.length; i++) {
          result[i] = allMatchingChars.charAt(random.nextInt(allMatchingChars.length()));
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed May 16 22:49:59 GMT 2018
    - 3.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/ByteSourceTester.java

        if (slice && bytes.length > 0) {
          // test a random slice() of the ByteSource
          Random random = new Random();
          byte[] expected = factory.getExpected(bytes);
          // if expected.length == 0, off has to be 0 but length doesn't matter--result will be empty
          int off = expected.length == 0 ? 0 : random.nextInt(expected.length);
          int len = expected.length == 0 ? 4 : random.nextInt(expected.length - off);
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java

     * only a secondary goal.
     *
     * @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;
    
    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)
  7. android/guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java

     * only a secondary goal.
     *
     * @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;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.9K bytes
    - Viewed (0)
  8. guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java

        }
      }
    
      // Use a constant seed for all of the benchmarks to ensure apples to apples comparisons.
      private static final int RANDOM_SEED = new Random().nextInt();
    
      private byte[] testBytes;
    
      @BeforeExperiment
      void setUp() {
        testBytes = new byte[size];
        new Random(RANDOM_SEED).nextBytes(testBytes);
      }
    
      @Benchmark
      byte hashing(int reps) {
        byte result = 0x01;
    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)
  9. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

      private static final int NUM_PUTS = 100_000;
      private static final ThreadLocal<Random> random =
          new ThreadLocal<Random>() {
            @Override
            protected Random initialValue() {
              return new Random();
            }
          };
    
      private static final int GOLDEN_PRESENT_KEY = random.get().nextInt();
    
      @AndroidIncompatible // OutOfMemoryError
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

      }
    
      private static final Random RANDOM = new Random(42);
    
      public void testLength() {
        assertThat(ImmutableLongArray.of().length()).isEqualTo(0);
        assertThat(ImmutableLongArray.of(0).length()).isEqualTo(1);
        assertThat(ImmutableLongArray.of(0, 1, 3).length()).isEqualTo(3);
        assertThat(ImmutableLongArray.of(0, 1, 3).subArray(1, 1).length()).isEqualTo(0);
    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