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

ben-manes / caffeine / 1708
100%

Build:
DEFAULT BRANCH: master
Ran 19 Apr 2016 12:37PM UTC
Jobs 1
Files 65
Run time 2s
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

pending completion
1708

push

travis-ci

ben-manes
Add write back-pressure for insert-heavy workloads

The write buffer is used primarily when a modification changes the size
of the cache (insert, remove, or update of an entry's weight). The
previous buffer was unbounded due to simplicity, lack of real-world
data indicating an issue, and stress tests showing a yield between
writes allowed the cache to keep up. While an unbounded queue is never
great, given the read heavy nature of cache workloads it hadn't been
a visible issue.

The bounded buffer grows from an initial size (16) to a maximum (based
on the number of cores). This allows a low footprint for ad hoc usage,
while also scaling well for high-demand usages. In a simple stress test
it achieved a good eviction rate (2.55M/s) with no GC penalty.

The implementation is a trimmed down version of MpscChunkedArrayQueue
from JCTools. Given the compatible license, friendly author, and great
quality code, it seemed poor to implement a custom variant.

5221 of 5528 relevant lines covered (94.45%)

0.94 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1708.1 (TERM=dumb) 19 Apr 2016 12:37PM UTC 0
94.45
Travis Job 1708.1
Source Files on build 1708
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1708
  • 3988e0bd on github
  • Prev Build on master (#1706)
  • Next Build on master (#1709)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc