소스 정보
- 저장소
- ben-manes/caffeine
- 최근 소스 활동
- 2026년 3월 22일 22:58
- 감지된 SKILL.md 언어
- 영어
- 스타
- 17,831
- 포크
- 1,709
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/ben-manes/caffeine --skill sim-compare명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | sim-compare |
| description | Run cache policy hit rate comparison across multiple cache sizes with charts |
| argument-hint | <trace-file> [policies...] [sizes...] |
| context | fork |
| disable-model-invocation | true |
| allowed-tools | Read, Grep, Glob, Bash |
Run a comprehensive cache policy comparison for the given trace.
Trace file: $ARGUMENTS
If no policies or sizes are specified, use sensible defaults based on the trace.
Identify the trace format. Check the file extension and contents:
.gz files: try common formats (lirs, arc, etc.)simulator/src/main/resources/reference.conf for format optionsformat:path syntax (e.g., lirs:trace.gz)Select policies to compare. Policy names use category.PolicyName format.
Note: config categories use hyphens (two-queue, greedy-dual), not underscores.
Each policy is paired with configured admission filters (default: Always, TinyLfu,
Clairvoyant), creating multiple instances per policy name.
Include at minimum:
product.Caffeine (the production implementation)opt.Clairvoyant (theoretical optimal, upper bound)opt.Unbounded (infinite cache, ceiling)linked.Lru (baseline)sketch.WindowTinyLfu (research W-TinyLFU)sketch.HillClimberWindowTinyLfu (adaptive variant)linked.S4Lru, adaptive.Arclinked.Lfu, irr.Lirstwo-queue.TwoQueue, two-queue.S3Fifogreedy-dual.Gdsf, greedy-dual.CampChoose cache sizes. Use a geometric progression covering the working set:
100,500,1_000,2_500,5_000,10_000,25_000Run the simulation. Use the Gradle task:
./gradlew simulator:simulate -q \
--maximumSize=100,500,1000,2500,5000,10000 \
--metric="Hit Rate" \
--title="Description" \
--theme=light \
--outputDir=build/reports/sim
Override the trace and policies via system properties appended to the command:
-Dcaffeine.simulator.files.paths.0="format:path/to/trace"
-Dcaffeine.simulator.policies.0=product.Caffeine
-Dcaffeine.simulator.policies.1=opt.Clairvoyant
# ... etc
Note: for single-size runs, use ./gradlew simulator:run -q with
-Dcaffeine.simulator.maximum-size=N instead of simulator:simulate.
Read and interpret results. The simulate task produces:
Explain findings. For each notable result:
.claude/docs/research-foundations.md for paper-to-code mappingReport. Present: