MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / get_benchmark_cache

Function get_benchmark_cache

uncommon_route/benchmark.py:648–653  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

646
647
648def get_benchmark_cache() -> BenchmarkCache:
649 global _ACTIVE_CACHE
650 if _ACTIVE_CACHE is None:
651 _ACTIVE_CACHE = BenchmarkCache()
652 _ACTIVE_CACHE.refresh_if_stale(background=True)
653 return _ACTIVE_CACHE

Callers 3

_on_startupFunction · 0.90
_benchmark_refresh_loopFunction · 0.90
select_from_poolFunction · 0.90

Calls 2

refresh_if_staleMethod · 0.95
BenchmarkCacheClass · 0.85

Tested by

no test coverage detected