• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ben-manes / caffeine / #5622
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: v3.dev
DEFAULT BRANCH: master
Ran 13 Jul 2026 04:41PM UTC
Jobs 1
Files 78
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Jul 2026 04:15PM UTC coverage: 99.988%. Remained the same
#5622

push

github

ben-manes
Count the inserting access in SampledPolicy frequency

A node's frequency started at zero, counting only re-accesses after
insertion. The Hyperbolic paper (ATC'17, Fig 1 / Eq 1) defines an
item's priority as n_i divided by its time in cache, where n_i is the
request count since it entered -- the inserting access counts, so a
new item enters at high priority ("temporary immunity") and decays
toward its true popularity. Caffeine's zero-based frequency gave a
fresh entry a hyperbolic priority of 0.0, the lowest, so sampled
Hyperbolic evicted new arrivals first -- the exact inversion of the
paper.

Initialize frequency to 1 at insertion so it means "requests since
entering", matching the paper's n_i. This is order-preserving for the
LFU and MFU selections (a uniform +1 shift leaves argmin/argmax
unchanged), so only Hyperbolic's eviction decisions change; FIFO, LRU,
MRU, and RANDOM do not read frequency.

4143 of 4154 branches covered (99.74%)

8412 of 8413 relevant lines covered (99.99%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #5622.1 13 Jul 2026 04:41PM UTC 78
99.99
Source Files on build #5622
  • Tree
  • List 78
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 12fa7fbb on github
  • Prev Build on v3.dev
  • Next Build on v3.dev
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc