Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for averageLoadPenalty (0.1 sec)

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

        assertThat(stats.missRate()).isEqualTo(1.0);
        assertEquals(1, stats.loadCount());
        long totalLoadTime = stats.totalLoadTime();
        assertTrue(totalLoadTime >= 0);
        assertTrue(stats.averageLoadPenalty() >= 0.0);
        assertEquals(0, stats.evictionCount());
    
        cache.getUnchecked(one);
        stats = cache.stats();
        assertEquals(2, stats.requestCount());
        assertEquals(1, stats.hitCount());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertThat(stats.missRate()).isEqualTo(1.0);
        assertEquals(1, stats.loadCount());
        long totalLoadTime = stats.totalLoadTime();
        assertTrue(totalLoadTime >= 0);
        assertTrue(stats.averageLoadPenalty() >= 0.0);
        assertEquals(0, stats.evictionCount());
    
        cache.getUnchecked(one);
        stats = cache.stats();
        assertEquals(2, stats.requestCount());
        assertEquals(1, stats.hitCount());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/cache/CacheStats.java

       * guaranteed not to throw an exception). If you require specific handling, we recommend
       * implementing your own stats collector.
       */
      public double averageLoadPenalty() {
        long totalLoadCount = saturatedAdd(loadSuccessCount, loadExceptionCount);
        return (totalLoadCount == 0) ? 0.0 : (double) totalLoadTime / totalLoadCount;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/CacheStats.java

       * guaranteed not to throw an exception). If you require specific handling, we recommend
       * implementing your own stats collector.
       */
      public double averageLoadPenalty() {
        long totalLoadCount = saturatedAdd(loadSuccessCount, loadExceptionCount);
        return (totalLoadCount == 0) ? 0.0 : (double) totalLoadTime / totalLoadCount;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.6K bytes
    - Viewed (0)
Back to top