MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / hit_rate

Method hit_rate

graphlite/src/cache/plan_cache.rs:92–99  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

90
91impl PlanCacheStats {
92 pub fn hit_rate(&self) -> f64 {
93 let total = self.hits + self.misses;
94 if total == 0 {
95 0.0
96 } else {
97 self.hits as f64 / total as f64
98 }
99 }
100
101 pub fn average_compilation_time_saved_ms(&self) -> f64 {
102 if self.compilations_saved == 0 {

Callers 2

efficiency_metricsMethod · 0.45
cache_statsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected