Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 232 for miss (0.02 seconds)

  1. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.cache-miss-monitor.gradle.kts

    fun isMonitoredAsciidoctorTask() = false // No asciidoctor tasks are cacheable for now
    
    fun Project.isExpectedAsciidoctorCacheMiss() =
    // Expected cache-miss for asciidoctor task:
    // 1. CompileAll is the seed build for docs:distDocs
    // 2. BuildDistributions is the seed build for other asciidoctor tasks
    // 3. buildScanPerformance test, which doesn't depend on compileAll
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Apr 11 20:57:49 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  2. tests/lru_test.go

    		trace[i] = getRand(b) % 32768
    	}
    
    	b.ResetTimer()
    
    	var hit, miss int
    	for i := 0; i < 2*b.N; i++ {
    		if i%2 == 0 {
    			l.Add(trace[i], trace[i])
    		} else {
    			if _, ok := l.Get(trace[i]); ok {
    				hit++
    			} else {
    				miss++
    			}
    		}
    	}
    	b.Logf("hit: %d miss: %d ratio: %f", hit, miss, float64(hit)/float64(hit+miss))
    }
    
    func BenchmarkLRU_Freq_NoExpire(b *testing.B) {
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Mon Sep 08 09:19:22 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

            assertThat(cache.asMap().containsKey(entry.getKey())).isTrue();
            assertThat(cache.asMap().containsValue(entry.getValue())).isTrue();
            // this getUnchecked() call shouldn't be a cache miss; verified below
            assertThat(cache.getUnchecked(entry.getKey())).isEqualTo(entry.getValue());
          }
          assertThat(cache.stats().missCount()).isEqualTo(WARMUP_SIZE);
          checkValidState(cache);
        }
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 15.7K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

            assertThat(cache.asMap().containsKey(entry.getKey())).isTrue();
            assertThat(cache.asMap().containsValue(entry.getValue())).isTrue();
            // this getUnchecked() call shouldn't be a cache miss; verified below
            assertThat(cache.getUnchecked(entry.getKey())).isEqualTo(entry.getValue());
          }
          assertThat(cache.stats().missCount()).isEqualTo(WARMUP_SIZE);
          checkValidState(cache);
        }
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 15.7K bytes
    - Click Count (0)
  5. build-logic/build.gradle.kts

    plugins {
        id("gradlebuild.collect-failed-tasks")
        id("gradlebuild.cache-miss-monitor")
    }
    
    description = "Provides plugins that are used by Gradle subprojects"
    
    tasks.register("check") {
        dependsOn(subprojects.map { "${it.name}:check" })
    }
    
    tasks.register("test") {
        dependsOn(subprojects.map { "${it.name}:test" })
    }
    
    val clean by tasks.registering {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Mar 14 02:17:00 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  6. build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/provider/BuildTimestampValueSource.kt

                // If the CC is enabled for docs tests, use a static dummy timestamp (the Epoch) so that we get hits,
                // otherwise we'll use the current timestamp by default and miss
                val formatter = SimpleDateFormat("yyyyMMddHHmmssZ").apply {
                    timeZone = TimeZone.getTimeZone("UTC")
                }
                return formatter.format(Date(0L))
            }
    
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Jun 05 17:24:26 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  7. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/BuildScanInfoCollectingServices.kt

        /* the implementation class to collect information from task execution result */
        klass: Class<T>,
        /* which tasks we need to monitor? For example, cache-miss-monitor monitors `AbstractCompile` tasks */
        taskFilter: (Task) -> Boolean,
        /* pass the collected information in build-logic and main build to Build Scan */
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Jun 10 05:45:46 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

      private fun testRequestMethod(
        requestMethod: String,
        expectCached: Boolean,
        withOverride: Boolean = false,
      ) {
        // 1. Seed the cache (potentially).
        // 2. Expect a cache hit or miss.
        server.enqueue(
          MockResponse
            .Builder()
            .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS))
            .addHeader("X-Response-ID: 1")
            .build(),
        )
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Oct 03 17:41:45 GMT 2025
    - 116.8K bytes
    - Click Count (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ClassMap.java

            }
    
            if (cacheEntry == null) {
                try {
                    cacheEntry = methodMap.find(name, params);
                } catch (MethodMap.AmbiguousException ae) {
                    // that's a miss :)
                    methodCache.put(methodKey, CACHE_MISS);
                    throw ae;
                }
    
                if (cacheEntry == null) {
                    methodCache.put(methodKey, CACHE_MISS);
                } else {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

            return cacheWritingResponse(cacheRequest, response).also {
              if (cacheResponse != null) {
                // This will log a conditional cache miss only.
                call.eventListener.cacheMiss(call)
              }
            }
          }
    
          if (HttpMethod.invalidatesCache(networkRequest.method)) {
            try {
              cache.remove(networkRequest)
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Nov 05 18:28:35 GMT 2025
    - 10.3K bytes
    - Click Count (0)
Back to Top