Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 65 for 1000000 (0.14 sec)

  1. guava-testlib/test/com/google/common/testing/FakeTickerTest.java

      }
    
      public void testAutoIncrementStep_millis() {
        FakeTicker ticker = new FakeTicker().setAutoIncrementStep(1, TimeUnit.MILLISECONDS);
        assertEquals(0, ticker.read());
        assertEquals(1000000, ticker.read());
        assertEquals(2000000, ticker.read());
      }
    
      public void testAutoIncrementStep_seconds() {
        FakeTicker ticker = new FakeTicker().setAutoIncrementStep(3, TimeUnit.SECONDS);
        assertEquals(0, ticker.read());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 14:40:46 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/collect/SortedCopyBenchmark.java

     * Ordering#sortedCopy} and {@link Ordering#immutableSortedCopy}, as well as for automated code
     * suggestions.
     *
     */
    public class SortedCopyBenchmark {
      @Param({"1", "10", "1000", "1000000"})
      int size; // logarithmic triangular
    
      @Param boolean mutable;
    
      @Param InputOrder inputOrder;
    
      enum InputOrder {
        SORTED {
          @Override
          void arrange(List<Integer> list) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.5K bytes
    - Viewed (0)
  3. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  4. 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)
  5. android/guava-testlib/test/com/google/common/testing/FakeTickerTest.java

      }
    
      public void testAutoIncrementStep_millis() {
        FakeTicker ticker = new FakeTicker().setAutoIncrementStep(1, TimeUnit.MILLISECONDS);
        assertEquals(0, ticker.read());
        assertEquals(1000000, ticker.read());
        assertEquals(2000000, ticker.read());
      }
    
      public void testAutoIncrementStep_seconds() {
        FakeTicker ticker = new FakeTicker().setAutoIncrementStep(3, TimeUnit.SECONDS);
        assertEquals(0, ticker.read());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 06 14:40:46 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  6. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.5K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/taglib/FessFunctionsTest.java

            assertEquals("1,000,000", FessFunctions.formatNumber(1000000, "###,###"));
        }
    
        public void test_formatFileSize() {
            assertEquals("0", FessFunctions.formatFileSize(0));
            assertEquals("1000", FessFunctions.formatFileSize(1000));
            assertEquals("976.6K", FessFunctions.formatFileSize(1000000));
            assertEquals("953.7M", FessFunctions.formatFileSize(1000000000));
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 5.9K bytes
    - Viewed (0)
Back to top