Сравнение политик кеширования по хит-рейту

data

sim-compare is a Claude Code skill that runs a comprehensive cache policy hit-rate comparison across multiple cache sizes and produces CSV reports and PNG charts. It accepts a trace file (including .gz formats) along with optional policy and size lists, falling back to sensible defaults derived from the trace when none are provided. Using the Gradle task `simulator:simulate`, it evaluates policies ranging from the `linked.Lru` baseline and `product.Caffeine` production implementation to the theoretical optimum `opt.Clairvoyant` and adaptive `sketch.HillClimberWindowTinyLfu`, across a geometric progression of cache sizes. The skill then reads the output CSVs to identify crossover points between policies, measures the gap between Caffeine and the clairvoyant ceiling, and explains which trace characteristics — frequency bias, recency patterns, or scan resistance — drive the differences. It is aimed at developers and researchers choosing the optimal eviction algorithm for a given workload.