Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for averageLoadPenalty (0.05 sec)

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

        assertThat(stats.missRate()).isEqualTo(1.0);
        assertThat(stats.loadCount()).isEqualTo(1);
        long totalLoadTime = stats.totalLoadTime();
        assertThat(totalLoadTime).isAtLeast(0);
        assertThat(stats.averageLoadPenalty()).isAtLeast(0.0);
        assertThat(stats.evictionCount()).isEqualTo(0);
    
        cache.getUnchecked(one);
        stats = cache.stats();
        assertThat(stats.requestCount()).isEqualTo(2);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  2. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  3. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 12.6K bytes
    - Viewed (0)
Back to top