Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for totalLoadTime (0.07 sec)

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

        assertEquals(Long.MAX_VALUE, stats.totalLoadTime());
      }
    
      public void testSimpleStatsIncrementBy() {
        long totalLoadTime = 0;
    
        SimpleStatsCounter counter1 = new SimpleStatsCounter();
        for (int i = 0; i < 11; i++) {
          counter1.recordHits(1);
        }
        for (int i = 0; i < 13; i++) {
          counter1.recordLoadSuccess(i);
          totalLoadTime += i;
        }
        for (int i = 0; i < 17; i++) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertEquals(2, stats.missCount());
        assertThat(stats.missRate()).isEqualTo(2.0 / 3);
        assertEquals(2, stats.loadCount());
        assertTrue(stats.totalLoadTime() >= totalLoadTime);
        totalLoadTime = stats.totalLoadTime();
        assertTrue(stats.averageLoadPenalty() >= 0.0);
        assertEquals(0, stats.evictionCount());
    
        Object three = new Object();
        cache.getUnchecked(three);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/cache/CacheStats.java

       * or {@code loadExceptionCount} is incremented.
       */
      @SuppressWarnings("GoodTime") // should return a java.time.Duration
      public long totalLoadTime() {
        return totalLoadTime;
      }
    
      /**
       * Returns the average time spent loading new values. This is defined as {@code totalLoadTime /
       * (loadSuccessCount + loadExceptionCount)}.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 12.6K bytes
    - Viewed (0)
Back to top