Аудит производительности JVM-кэша Caffeine

engineering

audit-performance is a Claude Code skill that performs a deep performance audit of Caffeine cache hot paths, targeting volatile reads, GC pressure from surviving allocations, and contention under high-throughput JVM workloads. Running in fork context with model invocation disabled, it employs an auditor agent required to read actual source before reporting — every finding must be traceable to specific lines and file locations. Six prioritized analysis areas cover the get/getIfPresent fast path, allocation and GC pressure, cache-line bouncing and CAS contention, FrequencySketch counter layout, maintenance latency spikes, and node memory layout with false-sharing opportunities. Each reported issue follows a structured template including severity (negligible, moderate, or high), code path trace, JIT compilation considerations, a concrete fix proposal, and a JMH benchmark impact prediction. Designed for services executing millions of cache operations per second where generic optimization advice adds no value.